aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar TizzySaurus <[email protected]>2022-10-19 22:47:54 +0100
committerGravatar TizzySaurus <[email protected]>2022-10-19 22:47:54 +0100
commitdb35e5eacc668a4019307a3bd1bb04b8f31e4238 (patch)
tree29f0ec96dc31d49ca6db1acea927423e14c36e4b /bot
parentRemove unnecessary map() (diff)
Add `break` statement to loop to make its functionality clearer.
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/holidays/easter/egghead_quiz.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/exts/holidays/easter/egghead_quiz.py b/bot/exts/holidays/easter/egghead_quiz.py
index b8d13e87..d77ebe01 100644
--- a/bot/exts/holidays/easter/egghead_quiz.py
+++ b/bot/exts/holidays/easter/egghead_quiz.py
@@ -100,6 +100,10 @@ class EggheadQuiz(commands.Cog):
async for user in reaction.users():
users.append(user)
+ # At this point we've added everyone who reacted
+ # with the correct answer, so stop looping over reactions.
+ break
+
mentions = " ".join([
u.mention for u in users if not u.bot
])