diff options
author | 2021-05-03 13:36:26 -0400 | |
---|---|---|
committer | 2021-05-03 13:36:26 -0400 | |
commit | e9f33306b5344c5d7e0877b0bf63ff9c914e6f85 (patch) | |
tree | 3584c00627bbf498ab6673dfd9807ee219501dba /bot/exts/easter/egghead_quiz.py | |
parent | chore: Clean Up the Valentines Season (diff) |
Clean Up the Easter Season
- Keep Consistent setup docstrings
- Type hint to bot.Bot instead of commands.Bot
- Don't set Cog.bot if it isn't used
Diffstat (limited to 'bot/exts/easter/egghead_quiz.py')
-rw-r--r-- | bot/exts/easter/egghead_quiz.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/exts/easter/egghead_quiz.py b/bot/exts/easter/egghead_quiz.py index 0498d9db..e950bc2e 100644 --- a/bot/exts/easter/egghead_quiz.py +++ b/bot/exts/easter/egghead_quiz.py @@ -8,6 +8,7 @@ from typing import Union import discord from discord.ext import commands +from bot.bot import Bot from bot.constants import Colours log = logging.getLogger(__name__) @@ -31,8 +32,7 @@ TIMELIMIT = 30 class EggheadQuiz(commands.Cog): """This cog contains the command for the Easter quiz!""" - def __init__(self, bot: commands.Bot) -> None: - self.bot = bot + def __init__(self) -> None: self.quiz_messages = {} @commands.command(aliases=["eggheadquiz", "easterquiz"]) @@ -114,6 +114,6 @@ class EggheadQuiz(commands.Cog): return await reaction.message.remove_reaction(reaction, user) -def setup(bot: commands.Bot) -> None: - """Egghead Quiz Cog load.""" - bot.add_cog(EggheadQuiz(bot)) +def setup(bot: Bot) -> None: + """Load the Egghead Quiz Cog.""" + bot.add_cog(EggheadQuiz()) |