diff options
author | 2021-04-20 15:46:30 -0400 | |
---|---|---|
committer | 2021-04-20 15:46:30 -0400 | |
commit | cda51f67c08df73951faa960858d72da281cfb74 (patch) | |
tree | c60925226262cbca2ccf6a3db139dff669aa2831 /bot/exts/evergreen/magic_8ball.py | |
parent | Clean Up Christmas Season (diff) | |
parent | chore: ctx.channel.send -> ctx.send (diff) |
Merge branch 'spring-cleanup' of https://github.com/ToxicKidz/sir-lancebot into spring-cleanup
Diffstat (limited to 'bot/exts/evergreen/magic_8ball.py')
-rw-r--r-- | bot/exts/evergreen/magic_8ball.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bot/exts/evergreen/magic_8ball.py b/bot/exts/evergreen/magic_8ball.py index f974e487..708aa6d2 100644 --- a/bot/exts/evergreen/magic_8ball.py +++ b/bot/exts/evergreen/magic_8ball.py @@ -5,14 +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): - self.bot = bot + def __init__(self, _bot: Bot): with open(Path("bot/resources/evergreen/magic8ball.json"), "r", encoding="utf8") as file: self.answers = json.load(file) @@ -26,6 +27,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: - """Magic 8ball Cog load.""" +def setup(bot: Bot) -> None: + """Load the Magic8Ball cog.""" bot.add_cog(Magic8ball(bot)) |