From 7e350a8202f97c5091b6e60dd5a375aad69206fc Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 28 Sep 2016 20:32:35 -0500 Subject: [PATCH] Corrected issue where member id wasn't added to twitch entry --- cogs/twitch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cogs/twitch.py b/cogs/twitch.py index 88e2c6d..8267bdc 100644 --- a/cogs/twitch.py +++ b/cogs/twitch.py @@ -113,6 +113,7 @@ class Twitch: async with s.get(twitch_url) as response: data = await response.json() with open("twitch_testing", 'w') as f: + data['requested_url'] = url json.dump(data, f) fmt = "Username: {}".format(data['display_name']) @@ -152,7 +153,8 @@ class Twitch: entry = {'twitch_url': url, 'servers': [ctx.message.server.id], 'notifications_on': 1, - 'live': 0} + 'live': 0, + 'member_id': ctx.message.author.id} update = {'twitch_url': url} # Check to see if this user has already saved a twitch URL