1
0
Fork 0
mirror of synced 2024-06-21 12:00:16 +12:00

Corrected a couple errors with twitch/picarto/da

This commit is contained in:
Phxntxm 2017-01-21 17:22:52 -06:00
parent c294c29b3b
commit 241889b382
3 changed files with 5 additions and 1 deletions

View file

@ -76,7 +76,7 @@ class Deviantart:
result = cache.get(da_name, None)
if result is None:
params['username'] = da_name
data = await utils.request(base_url, payload=params)
data = await utils.request(self.base_url, payload=params)
log.warning("DA responded with {}".format(data))
result = data['results'][0]

View file

@ -77,6 +77,8 @@ class Picarto:
channel = self.bot.get_channel(channel_id)
# Get the member that has just gone live
member = discord.utils.get(server.members, id=m_id)
if member is None:
continue
fmt = "{} has just gone live! View their stream at {}".format(member.display_name, url)
await self.bot.send_message(channel, fmt)

View file

@ -70,6 +70,8 @@ class Twitch:
channel = self.bot.get_channel(channel_id)
# Get the member that has just gone live
member = discord.utils.get(server.members, id=m_id)
if member is None:
continue
fmt = "{} has just gone live! View their stream at {}".format(member.display_name, url)
await self.bot.send_message(channel, fmt)