added threading #10

Merged
alex_orid merged 20 commits from threading-idea into Discord-Script 2020-11-17 10:34:26 +00:00
Showing only changes of commit 0e0456ca9e - Show all commits

View File

@ -78,6 +78,7 @@ class Twitch_Module():
self.tts_message(message)
def eval_commands(self, message: twitch.chat.Message):
print("evaling command")
# containsURL: bool = self.contains_url(message)
try:
#first_space_idx = message.text.index(' ')
@ -97,10 +98,12 @@ class Twitch_Module():
command = self.commands[command_text]
if command is not None and command.command_type is AbstractCommand.CommandType.TWITCH:
print("evaling command")
command.do_command(self, message)
except Exception as e:
# Undo the following for debug stuff
#print(e)
print("failed command")
pass # we don't care