aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RohanJnr <[email protected]>2019-10-01 10:49:21 +0530
committerGravatar RohanJnr <[email protected]>2019-10-01 10:49:21 +0530
commit47995d3c233c1203c26e75571cdf0cc914821d14 (patch)
tree21749338afc98c35b4eb6ec6e78d0ed0b8ec9d1b
parentadded 10 more questions (diff)
added function annotations to the check method
-rw-r--r--bot/seasons/evergreen/trivia_quiz.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/trivia_quiz.py b/bot/seasons/evergreen/trivia_quiz.py
index b4f47482..ac72ed95 100644
--- a/bot/seasons/evergreen/trivia_quiz.py
+++ b/bot/seasons/evergreen/trivia_quiz.py
@@ -130,7 +130,7 @@ class TriviaQuiz(commands.Cog):
embed.description = q
await ctx.send(embed=embed)
- def check(m):
+ def check(m: discord.Message) -> bool:
ratio = fuzz.ratio(answer.lower(), m.content.lower())
return ratio > 80 and m.channel == ctx.channel
try: