diff --git a/commands/implemented/command_tts.py b/commands/implemented/command_tts.py index 4392cc5..305e1cf 100644 --- a/commands/implemented/command_tts.py +++ b/commands/implemented/command_tts.py @@ -13,8 +13,10 @@ class CommandTTS(AbstractCommand, metaclass=ABCMeta): def do_command(self, bot, twitch_message): args = self.get_args(twitch_message.text) if args[1] == "start": - bot.send_message("tts activated on #%s" % twitch_message.channel) - bot.tts_enabled = True + if twitch_message.sender.lower() == twitch_message.channel: + bot.send_message("tts activated on #%s" % twitch_message.channel) + bot.tts_enabled = True elif args[1] == "stop": - bot.send_message("tts deactivated") - bot.tts_enabled = False + if twitch_message.sender.lower() == twitch_message.channel: + bot.send_message("tts activated on #%s" % twitch_message.channel) + bot.tts_enabled = False