aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/speedrun.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-09 13:22:09 -0400
committerGravatar S. Co1 <[email protected]>2019-09-09 15:00:38 -0400
commitbd03db75805d02da2088ec5067993aa5f23184ae (patch)
tree4038157164a5d4eaf918870ed3063eda22421816 /bot/seasons/evergreen/speedrun.py
parentAdd flake8-annotations to dev dependencies (diff)
Initial linting pass
Bot root, seasons cog, easter cogs, evergreen cogs, halloween cogs
Diffstat (limited to 'bot/seasons/evergreen/speedrun.py')
-rw-r--r--bot/seasons/evergreen/speedrun.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/evergreen/speedrun.py b/bot/seasons/evergreen/speedrun.py
index f6a43a63..2f59c886 100644
--- a/bot/seasons/evergreen/speedrun.py
+++ b/bot/seasons/evergreen/speedrun.py
@@ -13,16 +13,16 @@ with Path('bot/resources/evergreen/speedrun_links.json').open(encoding="utf-8")
class Speedrun(commands.Cog):
"""Commands about the video game speedrunning community."""
- def __init__(self, bot):
+ def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command(name="speedrun")
- async def get_speedrun(self, ctx):
+ async def get_speedrun(self, ctx: commands.Context) -> None:
"""Sends a link to a video of a random speedrun."""
await ctx.send(choice(LINKS))
-def setup(bot):
+def setup(bot: commands.Bot) -> None:
"""Load the Speedrun cog"""
bot.add_cog(Speedrun(bot))
log.info("Speedrun cog loaded")