-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathbotlog.py
More file actions
29 lines (23 loc) · 711 Bytes
/
botlog.py
File metadata and controls
29 lines (23 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class bcolors:
HEADER = '\033[95m'
WHITE = '\033[37m'
BLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
class BotLog(object):
def __init__(self):
pass
def log(self, message):
print(bcolors.WHITE + message + bcolors.ENDC)
def info(self, message):
print(bcolors.BLUE + message + bcolors.ENDC)
def success(self, message):
print(bcolors.OKGREEN + message + bcolors.ENDC)
def fail(self, message):
print(bcolors.FAIL + message + bcolors.ENDC)
def warning(self, message):
print(bcolors.WARNING + message + bcolors.ENDC)