diff --git a/dist/main/base_library.zip b/dist/main/base_library.zip index 23bd138..563f947 100644 Binary files a/dist/main/base_library.zip and b/dist/main/base_library.zip differ diff --git a/dist/main/main.exe b/dist/main/main.exe index 22a6a9e..be704c6 100644 Binary files a/dist/main/main.exe and b/dist/main/main.exe differ diff --git a/dist/main/main.exe.manifest b/dist/main/main.exe.manifest index 3a20356..b9f7a4c 100644 --- a/dist/main/main.exe.manifest +++ b/dist/main/main.exe.manifest @@ -3,10 +3,10 @@ + - - + diff --git a/the_bot.py b/the_bot.py index 26cd08c..1a2a225 100644 --- a/the_bot.py +++ b/the_bot.py @@ -1,6 +1,7 @@ import re import sys import time +import platform import requests import configparser from termcolor import colored @@ -93,7 +94,13 @@ def print_message(self, text, color='magenta'): :param color: message color """ updated_text = '[{0}] {1}: {2}'.format(datetime.now().strftime("%H:%M:%S"), self._bot_name, text) - message = colored(updated_text, color) + + if platform.system() == 'Windows': + # Colors doesn't work in Windows + message = updated_text + else: + message = colored(updated_text, color) + print(message) @staticmethod