aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/trivia_quiz.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/trivia_quiz.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/trivia_quiz.py')
-rw-r--r--bot/exts/evergreen/trivia_quiz.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py
index fe692c2a..080f5b6f 100644
--- a/bot/exts/evergreen/trivia_quiz.py
+++ b/bot/exts/evergreen/trivia_quiz.py
@@ -8,6 +8,7 @@ import discord
from discord.ext import commands
from fuzzywuzzy import fuzz
+from bot.bot import Bot
from bot.constants import Roles
@@ -23,7 +24,7 @@ WRONG_ANS_RESPONSE = [
class TriviaQuiz(commands.Cog):
"""A cog for all quiz commands."""
- def __init__(self, bot: commands.Bot) -> None:
+ def __init__(self, bot: Bot) -> None:
self.bot = bot
self.questions = self.load_questions()
self.game_status = {} # A variable to store the game status: either running or not running.
@@ -299,6 +300,6 @@ class TriviaQuiz(commands.Cog):
await channel.send(embed=embed)
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the cog."""
bot.add_cog(TriviaQuiz(bot))