From 536d348a686ed015f4d5dc5a44fcf960529fed84 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 10 Jul 2016 12:24:10 -0500 Subject: [PATCH] Saved the actual server, not just the id now --- cogs/twitch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/twitch.py b/cogs/twitch.py index df61244..a84be04 100644 --- a/cogs/twitch.py +++ b/cogs/twitch.py @@ -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'])