From 23901ed14893275d0e3f8dac15c81da17511588b Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 10 Aug 2016 10:20:58 -0500 Subject: [PATCH] Removed pass, might have been causing the issue with checking if someone has gone live --- cogs/picarto.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cogs/picarto.py b/cogs/picarto.py index 8633d2e..cdde9cb 100644 --- a/cogs/picarto.py +++ b/cogs/picarto.py @@ -48,8 +48,8 @@ class Picarto: picarto[m_id]['live'] = 1 fmt = "{} has just gone live! View their stream at {}".format(member.display_name, url) - await self.bot.send_message(channel, fmt) config.saveContent('picarto', picarto) + await self.bot.send_message(channel, fmt) elif live and not online: for server_id, channel_id in r['servers'].items(): server = self.bot.get_server(r['server_id']) @@ -60,9 +60,8 @@ class Picarto: fmt = "{} has just gone offline! Catch them next time they stream at {}".format( member.display_name, url) - await self.bot.send_message(channel, fmt) config.saveContent('picarto', picarto) - pass + await self.bot.send_message(channel, fmt) await asyncio.sleep(30) @commands.group(pass_context=True, invoke_without_command=True)