1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Saved the actual server, not just the id now

This commit is contained in:
Phxntxm 2016-07-10 12:24:10 -05:00
parent e79a85e646
commit 536d348a68

View file

@ -20,7 +20,7 @@ async def checkChannels(bot):
cursor.execute('select * from twitch')
result = cursor.fetchall()
for r in result:
server = r['server_id']
server = discord.utils.find(lambda s: s.id == r['server_id'], bot.servers)
member = discord.utils.find(lambda m: m.id == r['user_id'], server.members)
url = r['twitch_url']
live = int(r['live'])