Changed variable name to not interfere with the method name
This commit is contained in:
parent
b8b923a7a9
commit
aaa63a7c27
1 changed files with 2 additions and 2 deletions
|
@ -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():
|
||||||
|
|
Loading…
Reference in a new issue