aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/magic_8ball.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/magic_8ball.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/magic_8ball.py')
-rw-r--r--bot/exts/evergreen/magic_8ball.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/evergreen/magic_8ball.py b/bot/exts/evergreen/magic_8ball.py
index f974e487..2dfe237a 100644
--- a/bot/exts/evergreen/magic_8ball.py
+++ b/bot/exts/evergreen/magic_8ball.py
@@ -5,13 +5,15 @@ from pathlib import Path
from discord.ext import commands
+from bot.bot import Bot
+
log = logging.getLogger(__name__)
class Magic8ball(commands.Cog):
"""A Magic 8ball command to respond to a user's question."""
- def __init__(self, bot: commands.Bot):
+ def __init__(self, bot: Bot):
self.bot = bot
with open(Path("bot/resources/evergreen/magic8ball.json"), "r", encoding="utf8") as file:
self.answers = json.load(file)
@@ -26,6 +28,6 @@ class Magic8ball(commands.Cog):
await ctx.send("Usage: .8ball <question> (minimum length of 3 eg: `will I win?`)")
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Magic 8ball Cog load."""
bot.add_cog(Magic8ball(bot))