Remove \x02 from console and file output
This commit is contained in:
parent
1d711b9cee
commit
5c4dcec8e6
@ -82,7 +82,7 @@ def logger(file, write=True, display=True):
|
||||
if file is not None:
|
||||
open(file, "a").close() # create the file if it doesn't exist
|
||||
def log(*output, write=write, display=display):
|
||||
output = " ".join([str(x) for x in output]).replace("\u0002", "").replace("\x02", "") # remove bold
|
||||
output = " ".join([str(x) for x in output]).replace("\u0002", "").replace("\\x02", "") # remove bold
|
||||
if botconfig.DEBUG_MODE:
|
||||
write = True
|
||||
if botconfig.DEBUG_MODE or botconfig.VERBOSE_MODE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user