Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Apr 6, 2021
1 parent 1812ecc commit 3ec0a26
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion twitch_monitor_discord_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

__author__ = "Erik Nyquist"
__license__ = "Apache 2.0"
__version__ = "1.2.0"
__version__ = "1.2.1"
__maintainer__ = "Erik Nyquist"
__email__ = "[email protected]"

6 changes: 5 additions & 1 deletion twitch_monitor_discord_bot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions twitch_monitor_discord_bot/command_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion twitch_monitor_discord_bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3ec0a26

Please sign in to comment.