Compare commits
2 Commits
354a6da9ae
...
1993593150
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1993593150 | ||
|
|
7c870caa92 |
@ -67,11 +67,11 @@ 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):
|
||||||
containsURL: bool = self.contains_url(message)
|
# containsURL: bool = self.contains_url(message)
|
||||||
command_text = message.text[0:message.text.index(' ')]
|
command_text = message.text[0:message.text.index(' ')]
|
||||||
|
|
||||||
command = self.commands[command_text]
|
command = self.commands[command_text]
|
||||||
if command is not None and command.command_type is not AbstractCommand.CommandType.NONE:
|
if command is not None and command.command_type is AbstractCommand.CommandType.TWITCH:
|
||||||
command.do_command(self, message)
|
command.do_command(self, message)
|
||||||
|
|
||||||
# if message.text.startswith('!tts start'):
|
# if message.text.startswith('!tts start'):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user