From cfea968f1bafadd53a02f92e588495276f87b3ea Mon Sep 17 00:00:00 2001 From: Simon Junod Date: Mon, 17 Oct 2022 15:38:46 +0200 Subject: [PATCH] Reset the set of resetters when the word is found --- cambot/wordle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cambot/wordle.py b/cambot/wordle.py index b7263dc..3f34d6d 100644 --- a/cambot/wordle.py +++ b/cambot/wordle.py @@ -132,6 +132,7 @@ class Game: if guess == self.target: self.winner = message.author await self.channel.edit(slowmode_delay=0) + self.resetters = set() output += "\n\n:trophy: YOUPI :trophy:\n\nScores :\n\n" for idx, score in enumerate(sorted(self.scores.items(), key=lambda x:x[1], reverse=True)): player, points = score