aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/evergreen/speedrun.py
diff options
context:
space:
mode:
authorGravatar Rohan_Iceman <[email protected]>2019-10-02 07:52:37 +0530
committerGravatar GitHub <[email protected]>2019-10-02 07:52:37 +0530
commitefc7a5146f922a0d70375355dfe84c9d7d63ff70 (patch)
treeb25310b56d008e0d5f05bc7d460a9640b69e7080 /bot/seasons/evergreen/speedrun.py
parentadded function annotations to the check method (diff)
parentPoint setup guide to site wiki (diff)
Merge branch 'master' into trivia_quiz
Diffstat (limited to 'bot/seasons/evergreen/speedrun.py')
-rw-r--r--bot/seasons/evergreen/speedrun.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/bot/seasons/evergreen/speedrun.py b/bot/seasons/evergreen/speedrun.py
index f6a43a63..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):
- """Load the Speedrun cog"""
+def setup(bot: commands.Bot) -> None:
+ """Load the Speedrun cog."""
bot.add_cog(Speedrun(bot))
log.info("Speedrun cog loaded")