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:
parent
83dad6764a
commit
0e0456ca9e
@ -78,6 +78,7 @@ class Twitch_Module():
|
|||||||
self.tts_message(message)
|
self.tts_message(message)
|
||||||
|
|
||||||
def eval_commands(self, message: twitch.chat.Message):
|
def eval_commands(self, message: twitch.chat.Message):
|
||||||
|
print("evaling command")
|
||||||
# containsURL: bool = self.contains_url(message)
|
# containsURL: bool = self.contains_url(message)
|
||||||
try:
|
try:
|
||||||
#first_space_idx = message.text.index(' ')
|
#first_space_idx = message.text.index(' ')
|
||||||
@ -97,10 +98,12 @@ class Twitch_Module():
|
|||||||
|
|
||||||
command = self.commands[command_text]
|
command = self.commands[command_text]
|
||||||
if command is not None and command.command_type is AbstractCommand.CommandType.TWITCH:
|
if command is not None and command.command_type is AbstractCommand.CommandType.TWITCH:
|
||||||
|
print("evaling command")
|
||||||
command.do_command(self, message)
|
command.do_command(self, message)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Undo the following for debug stuff
|
# Undo the following for debug stuff
|
||||||
#print(e)
|
#print(e)
|
||||||
|
print("failed command")
|
||||||
pass # we don't care
|
pass # we don't care
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user