Okay, we'll just do the whole thing in a try block
This commit is contained in:
parent
5b2c7c0ee9
commit
59aba6ba20
@ -68,6 +68,7 @@ class Twitch_Module():
|
||||
|
||||
def eval_commands(self, message: twitch.chat.Message):
|
||||
# containsURL: bool = self.contains_url(message)
|
||||
try:
|
||||
first_space_idx = message.text.index(' ')
|
||||
command_text = ' '
|
||||
if first_space_idx > -1:
|
||||
@ -75,7 +76,6 @@ class Twitch_Module():
|
||||
else:
|
||||
command_text = message.text
|
||||
|
||||
try:
|
||||
command = self.commands[command_text]
|
||||
if command is not None and command.command_type is AbstractCommand.CommandType.TWITCH:
|
||||
command.do_command(self, message)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user