aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/speedrun.py
diff options
context:
space:
mode:
authorGravatar vcokltfre <[email protected]>2021-04-19 20:20:48 +0100
committerGravatar vcokltfre <[email protected]>2021-04-19 20:20:48 +0100
commit1ed857d9093481387720ac1dc4041a64a2c9c593 (patch)
tree909724207ba5493db3f0871a74efa1198d34fc59 /bot/exts/evergreen/speedrun.py
parentMerge pull request #673 from janine9vn/int-eval (diff)
chore: switch commands.Bot typehints to bot.bot's Bot
Diffstat (limited to 'bot/exts/evergreen/speedrun.py')
-rw-r--r--bot/exts/evergreen/speedrun.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/evergreen/speedrun.py b/bot/exts/evergreen/speedrun.py
index 21aad5aa..27d944ca 100644
--- a/bot/exts/evergreen/speedrun.py
+++ b/bot/exts/evergreen/speedrun.py
@@ -5,6 +5,8 @@ from random import choice
from discord.ext import commands
+from bot.bot import Bot
+
log = logging.getLogger(__name__)
with Path('bot/resources/evergreen/speedrun_links.json').open(encoding="utf8") as file:
LINKS = json.load(file)
@@ -13,7 +15,7 @@ with Path('bot/resources/evergreen/speedrun_links.json').open(encoding="utf8") a
class Speedrun(commands.Cog):
"""Commands about the video game speedrunning community."""
- def __init__(self, bot: commands.Bot):
+ def __init__(self, bot: Bot):
self.bot = bot
@commands.command(name="speedrun")
@@ -22,6 +24,6 @@ class Speedrun(commands.Cog):
await ctx.send(choice(LINKS))
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the Speedrun cog."""
bot.add_cog(Speedrun(bot))