From 13f7bec8e5bb0b284d30844a81789fa7c9d0e7fe Mon Sep 17 00:00:00 2001 From: Quanta Date: Fri, 9 Oct 2020 15:29:16 +0530 Subject: Fix: Update record on loosing --- bot/exts/halloween/candy_collection.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bot') diff --git a/bot/exts/halloween/candy_collection.py b/bot/exts/halloween/candy_collection.py index acc21696..56da88ff 100644 --- a/bot/exts/halloween/candy_collection.py +++ b/bot/exts/halloween/candy_collection.py @@ -87,6 +87,7 @@ class CandyCollection(commands.Cog): if (prev_record := self.candy_records.get(str(message.author.id))) is not None: lost = min(random.randint(1, 3), prev_record) + self.candy_records[str(message.author.id)] = prev_record - lost if lost == prev_record: await self.send_spook_msg(message.author, message.channel, 'all of your') -- cgit v1.2.3