Reset the set of resetters when the word is found

This commit is contained in:
2022-10-17 15:38:46 +02:00
parent c6ea73a581
commit cfea968f1b

View File

@@ -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