1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Correctly handle str/int conversions

This commit is contained in:
Phxntxm 2017-03-12 17:14:15 -05:00
parent 582e33d907
commit 9caf781289

View file

@ -53,7 +53,7 @@ class Twitch:
# If they're currently online, but saved as not then we'll send our notification
if online and data['live'] == 0:
for s_id in data['servers']:
server = self.bot.get_guild(s_id)
server = self.bot.get_guild(int(s_id))
if server is None:
continue
member = server.get_member(m_id)
@ -69,7 +69,7 @@ class Twitch:
self.bot.loop.create_task(utils.update_content('twitch', {'live': 1}, str(m_id)))
elif not online and data['live'] == 1:
for s_id in data['servers']:
server = self.bot.get_guild(s_id)
server = self.bot.get_guild(int(s_id))
if server is None:
continue
member = server.get_member(m_id)