Fixed TTS Setting command
This commit is contained in:
parent
7205964c3c
commit
7aa6c55863
@ -13,8 +13,10 @@ class CommandTTS(AbstractCommand, metaclass=ABCMeta):
|
|||||||
def do_command(self, bot, twitch_message):
|
def do_command(self, bot, twitch_message):
|
||||||
args = self.get_args(twitch_message.text)
|
args = self.get_args(twitch_message.text)
|
||||||
if args[1] == "start":
|
if args[1] == "start":
|
||||||
bot.send_message("tts activated on #%s" % twitch_message.channel)
|
if twitch_message.sender.lower() == twitch_message.channel:
|
||||||
bot.tts_enabled = True
|
bot.send_message("tts activated on #%s" % twitch_message.channel)
|
||||||
|
bot.tts_enabled = True
|
||||||
elif args[1] == "stop":
|
elif args[1] == "stop":
|
||||||
bot.send_message("tts deactivated")
|
if twitch_message.sender.lower() == twitch_message.channel:
|
||||||
bot.tts_enabled = False
|
bot.send_message("tts activated on #%s" % twitch_message.channel)
|
||||||
|
bot.tts_enabled = False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user