aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/speedrun.py
diff options
context:
space:
mode:
authorGravatar Kieran Siek <[email protected]>2019-09-14 01:09:53 +0800
committerGravatar GitHub <[email protected]>2019-09-14 01:09:53 +0800
commite1dab123fc77986b09dc622457886635eb26d4ab (patch)
treebf38f7863925b393326edf4dc04453508e545a2b /bot/seasons/evergreen/speedrun.py
parentMerge pull request #269 from python-discord/hacktoberfest-update (diff)
parentFix incorrect merge conflict resolutions, lint remaining items (diff)
Merge pull request #270 from python-discord/flake8-annotations
Add Flake8 annotations
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 5e3d38a0..76c5e8d3 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")