1
0
Fork 0
mirror of synced 2024-06-28 03:00:55 +12:00

Corrected issue where member id wasn't added to twitch entry

This commit is contained in:
phxntxm 2016-09-28 20:32:35 -05:00
parent bbcd6f5909
commit 7e350a8202

View file

@ -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