Prep for Bug Fix

Currently there is a bug where if discord and twitch have the same named commands,
the command will fail.
This commit is contained in:
Alex Orid 2020-10-20 06:26:41 -04:00
parent 83dad6764a
commit 0e0456ca9e

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