mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 18:06:08 -05:00
[V3 Travis] Update travis to not skip pipfile lock... (#1678)
* Update travis to not sip pipfile lock update pipfile dependencies additional black formatting pass to conform to black 18.5b * . * pin async timeout until further discussion of 3.5 support * .
This commit is contained in:
@@ -252,9 +252,7 @@ class Streams:
|
||||
await ctx.send(
|
||||
_(
|
||||
"The Youtube API key is either invalid or has not been set. " "See {}."
|
||||
).format(
|
||||
"`{}streamset youtubekey`".format(ctx.prefix)
|
||||
)
|
||||
).format("`{}streamset youtubekey`".format(ctx.prefix))
|
||||
)
|
||||
return
|
||||
except APIError:
|
||||
@@ -362,9 +360,7 @@ class Streams:
|
||||
_(
|
||||
"When a stream configured for stream alerts "
|
||||
"comes online, {} will be mentioned"
|
||||
).format(
|
||||
"@\u200beveryone"
|
||||
)
|
||||
).format("@\u200beveryone")
|
||||
)
|
||||
|
||||
@mention.command(aliases=["here"])
|
||||
@@ -384,9 +380,7 @@ class Streams:
|
||||
_(
|
||||
"When a stream configured for stream alerts "
|
||||
"comes online, {} will be mentioned"
|
||||
).format(
|
||||
"@\u200bhere"
|
||||
)
|
||||
).format("@\u200bhere")
|
||||
)
|
||||
|
||||
@mention.command()
|
||||
@@ -411,9 +405,7 @@ class Streams:
|
||||
"When a stream configured for stream alerts "
|
||||
"comes online, {} will be mentioned"
|
||||
""
|
||||
).format(
|
||||
"@\u200b{}".format(role.name)
|
||||
)
|
||||
).format("@\u200b{}".format(role.name))
|
||||
)
|
||||
|
||||
@streamset.command()
|
||||
@@ -458,9 +450,7 @@ class Streams:
|
||||
"I'll send a notification in this channel when a "
|
||||
"channel is streaming to the {} community"
|
||||
""
|
||||
).format(
|
||||
community.name
|
||||
)
|
||||
).format(community.name)
|
||||
)
|
||||
else:
|
||||
community.channels.remove(ctx.channel.id)
|
||||
@@ -471,9 +461,7 @@ class Streams:
|
||||
"I won't send notifications about channels streaming "
|
||||
"to the {} community in this channel anymore"
|
||||
""
|
||||
).format(
|
||||
community.name
|
||||
)
|
||||
).format(community.name)
|
||||
)
|
||||
await self.save_communities()
|
||||
|
||||
|
||||
@@ -266,7 +266,7 @@ class TwitchStream(Stream):
|
||||
url = channel["url"]
|
||||
logo = channel["logo"]
|
||||
if logo is None:
|
||||
logo = ("https://static-cdn.jtvnw.net/" "jtv_user_pictures/xarth/404_user_70x70.png")
|
||||
logo = "https://static-cdn.jtvnw.net/" "jtv_user_pictures/xarth/404_user_70x70.png"
|
||||
status = channel["status"]
|
||||
if not status:
|
||||
status = "Untitled broadcast"
|
||||
@@ -348,7 +348,7 @@ class MixerStream(Stream):
|
||||
raise APIError()
|
||||
|
||||
def make_embed(self, data):
|
||||
default_avatar = ("https://mixer.com/_latest/assets/images/main/" "avatars/default.jpg")
|
||||
default_avatar = "https://mixer.com/_latest/assets/images/main/" "avatars/default.jpg"
|
||||
user = data["user"]
|
||||
url = "https://mixer.com/" + data["token"]
|
||||
embed = discord.Embed(title=data["name"], url=url)
|
||||
|
||||
Reference in New Issue
Block a user