1
0
Fork 0
mirror of synced 2024-09-28 23:41:41 +12:00

Changed variable name to not interfere with the method name

This commit is contained in:
Phxntxm 2016-08-12 19:38:56 -05:00
parent b8b923a7a9
commit aaa63a7c27

View file

@ -36,13 +36,13 @@ class Picarto:
await self.bot.wait_until_ready() await self.bot.wait_until_ready()
while not self.bot.is_closed: while not self.bot.is_closed:
picarto = config.getContent('picarto') or {} picarto = config.getContent('picarto') or {}
online_users = await online_users() online_users_list = await online_users()
for m_id, r in picarto.items(): for m_id, r in picarto.items():
url = r['picarto_url'] url = r['picarto_url']
live = r['live'] live = r['live']
notify = r['notifications_on'] notify = r['notifications_on']
user = re.search("(?<=picarto.tv/)(.*)", url).group(1) user = re.search("(?<=picarto.tv/)(.*)", url).group(1)
online = check_online(online_users, user) online = check_online(online_users_list, user)
if not live and notify and online: if not live and notify and online:
for server_id in r['servers'].items(): for server_id in r['servers'].items():