1
0
Fork 0
mirror of synced 2024-06-30 12:10:26 +12:00

Removed pass, might have been causing the issue with checking if someone has gone live

This commit is contained in:
phxntxm 2016-08-10 10:20:58 -05:00
parent 2b4b467c55
commit 23901ed148

View file

@ -48,8 +48,8 @@ class Picarto:
picarto[m_id]['live'] = 1 picarto[m_id]['live'] = 1
fmt = "{} has just gone live! View their stream at {}".format(member.display_name, url) 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) config.saveContent('picarto', picarto)
await self.bot.send_message(channel, fmt)
elif live and not online: elif live and not online:
for server_id, channel_id in r['servers'].items(): for server_id, channel_id in r['servers'].items():
server = self.bot.get_server(r['server_id']) 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( fmt = "{} has just gone offline! Catch them next time they stream at {}".format(
member.display_name, member.display_name,
url) url)
await self.bot.send_message(channel, fmt)
config.saveContent('picarto', picarto) config.saveContent('picarto', picarto)
pass await self.bot.send_message(channel, fmt)
await asyncio.sleep(30) await asyncio.sleep(30)
@commands.group(pass_context=True, invoke_without_command=True) @commands.group(pass_context=True, invoke_without_command=True)