Corrected a couple errors with twitch/picarto/da
This commit is contained in:
parent
c294c29b3b
commit
241889b382
|
@ -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]
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue