aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/easter/egghead_quiz.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-05 18:35:04 -0400
committerGravatar S. Co1 <[email protected]>2019-09-05 18:35:04 -0400
commitd982254a79ca3e34c9f50e072a925fe6b8a12ed1 (patch)
tree689691b7ede87b0b5202e4a5844c4a06b179a471 /bot/seasons/easter/egghead_quiz.py
parentUpdate Snakes and Ladders (diff)
Fix misconfigured flake8 so docstrings are properly linted
Relint
Diffstat (limited to 'bot/seasons/easter/egghead_quiz.py')
-rw-r--r--bot/seasons/easter/egghead_quiz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/easter/egghead_quiz.py b/bot/seasons/easter/egghead_quiz.py
index 3e0cc598..b3841993 100644
--- a/bot/seasons/easter/egghead_quiz.py
+++ b/bot/seasons/easter/egghead_quiz.py
@@ -37,7 +37,7 @@ class EggheadQuiz(commands.Cog):
@commands.command(aliases=["eggheadquiz", "easterquiz"])
async def eggquiz(self, ctx):
"""
- Gives a random quiz question, waits 30 seconds and then outputs the answer
+ Gives a random quiz question, waits 30 seconds and then outputs the answer.
Also informs of the percentages and votes of each option
"""
@@ -96,13 +96,13 @@ class EggheadQuiz(commands.Cog):
@staticmethod
async def already_reacted(message, user):
- """Returns whether a given user has reacted more than once to a given message"""
+ """Returns whether a given user has reacted more than once to a given message."""
users = [u.id for reaction in [await r.users().flatten() for r in message.reactions] for u in reaction]
return users.count(user.id) > 1 # Old reaction plus new reaction
@commands.Cog.listener()
async def on_reaction_add(self, reaction, user):
- """Listener to listen specifically for reactions of quiz messages"""
+ """Listener to listen specifically for reactions of quiz messages."""
if user.bot:
return
if reaction.message.id not in self.quiz_messages: