From 0e0456ca9ef85d443726fcd3002321e0633008a9 Mon Sep 17 00:00:00 2001 From: Alex Orid Date: Tue, 20 Oct 2020 06:26:41 -0400 Subject: [PATCH] Prep for Bug Fix Currently there is a bug where if discord and twitch have the same named commands, the command will fail. --- twitch_script.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/twitch_script.py b/twitch_script.py index 8a13871..8913582 100644 --- a/twitch_script.py +++ b/twitch_script.py @@ -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