removed thermcolor fron deps
This commit is contained in:
@@ -2,13 +2,12 @@ import random
|
||||
import subprocess
|
||||
import sys
|
||||
from typing import Optional
|
||||
import termcolor
|
||||
import os
|
||||
import re
|
||||
import signal
|
||||
|
||||
from .config import CONFIG
|
||||
from .static import RESPONSES, Situation
|
||||
from .static import RESPONSES, Situation, colors
|
||||
|
||||
def _expand_template(template: str) -> str:
|
||||
for key, value in CONFIG.items():
|
||||
@@ -27,4 +26,4 @@ def get_response(situation: Situation, colorize: Optional[bool] = None):
|
||||
# return message
|
||||
if not colorize:
|
||||
return message
|
||||
return termcolor.colored(message, attrs=["bold"])
|
||||
return colors.BOLD + message + colors.ENDC
|
||||
|
||||
@@ -79,3 +79,14 @@ RESPONSES = {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
class colors:
|
||||
HEADER = '\033[95m'
|
||||
OKBLUE = '\033[94m'
|
||||
OKCYAN = '\033[96m'
|
||||
OKGREEN = '\033[92m'
|
||||
WARNING = '\033[93m'
|
||||
FAIL = '\033[91m'
|
||||
BOLD = '\033[1m'
|
||||
UNDERLINE = '\033[4m'
|
||||
ENDC = '\033[0m'
|
||||
|
||||
Reference in New Issue
Block a user