diff --git a/twitch_monitor_discord_bot/__init__.py b/twitch_monitor_discord_bot/__init__.py index 9e5459f..1a0aa91 100644 --- a/twitch_monitor_discord_bot/__init__.py +++ b/twitch_monitor_discord_bot/__init__.py @@ -3,7 +3,7 @@ __author__ = "Erik Nyquist" __license__ = "Apache 2.0" -__version__ = "1.2.0" +__version__ = "1.2.1" __maintainer__ = "Erik Nyquist" __email__ = "eknyquist@gmail.com" diff --git a/twitch_monitor_discord_bot/__main__.py b/twitch_monitor_discord_bot/__main__.py index 003a691..520bf22 100644 --- a/twitch_monitor_discord_bot/__main__.py +++ b/twitch_monitor_discord_bot/__main__.py @@ -58,7 +58,11 @@ def streamer_check_loop(config, monitor, bot, host_user): while True: time.sleep(config.poll_period_secs) - msgs = check_streamers(config, monitor, bot, host_user) + try: + msgs = check_streamers(config, monitor, bot, host_user) + except: + pass + for msg in msgs: logger.debug("sending message to channel '%s'" % config.discord_channel) bot.send_message(msg) diff --git a/twitch_monitor_discord_bot/command_processor.py b/twitch_monitor_discord_bot/command_processor.py index 866ee33..6f04b6c 100644 --- a/twitch_monitor_discord_bot/command_processor.py +++ b/twitch_monitor_discord_bot/command_processor.py @@ -488,9 +488,9 @@ def cmd_say(proc, config, twitch_monitor, args): twitch_monitor_bot_command_list = [ Command("help", cmd_help, False, CMD_HELP_HELP), Command("streamers", cmd_streamers, True, CMD_STREAMERS_HELP), - Command("addstreamers", True, cmd_addstreamers, CMD_ADDSTREAMERS_HELP), - Command("removestreamers", True, cmd_removestreamers, CMD_REMOVESTREAMERS_HELP), - Command("clearallstreamers", True ,cmd_clearallstreamers, CMD_CLEARALLSTREAMERS_HELP), + Command("addstreamers", cmd_addstreamers, True, CMD_ADDSTREAMERS_HELP), + Command("removestreamers", cmd_removestreamers, True, CMD_REMOVESTREAMERS_HELP), + Command("clearallstreamers", cmd_clearallstreamers, True, CMD_CLEARALLSTREAMERS_HELP), Command("phrases", cmd_phrases, True, CMD_PHRASES_HELP), Command("addphrase", cmd_addphrase, True, CMD_ADDPHRASE_HELP), Command("removephrase", cmd_removephrase, True, CMD_REMOVEPHRASE_HELP), diff --git a/twitch_monitor_discord_bot/config.py b/twitch_monitor_discord_bot/config.py index 01a3495..24f8b84 100644 --- a/twitch_monitor_discord_bot/config.py +++ b/twitch_monitor_discord_bot/config.py @@ -154,7 +154,7 @@ def save_to_file(self, filename=None): STARTUP_MESSAGE_KEY: self.startup_message, ADMIN_USERS_KEY: self.admin_users, CONFIG_FILE_WRITE_DELAY_KEY: self.write_delay_seconds, - COMMAND_LOG_FILE: self.command_log_file + COMMAND_LOG_KEY: self.command_log_file }, fh, indent=4) self.last_write_time = time.time()