aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/easter/egghead_quiz.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/easter/egghead_quiz.py')
-rw-r--r--bot/exts/easter/egghead_quiz.py10
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())