diff options
author | 2022-10-19 22:47:54 +0100 | |
---|---|---|
committer | 2022-10-19 22:47:54 +0100 | |
commit | db35e5eacc668a4019307a3bd1bb04b8f31e4238 (patch) | |
tree | 29f0ec96dc31d49ca6db1acea927423e14c36e4b | |
parent | Remove unnecessary map() (diff) |
Add `break` statement to loop to make its functionality clearer.
-rw-r--r-- | bot/exts/holidays/easter/egghead_quiz.py | 4 |
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 ]) |