aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
authorGravatar Quanta <[email protected]>2020-10-09 15:29:16 +0530
committerGravatar Quanta <[email protected]>2020-10-09 15:29:16 +0530
commit13f7bec8e5bb0b284d30844a81789fa7c9d0e7fe (patch)
tree9a5364171116459c2f3d0e50282a7995a1db3808 /bot/exts
parentSatisfy lint (diff)
Fix: Update record on loosing
Diffstat (limited to 'bot/exts')
-rw-r--r--bot/exts/halloween/candy_collection.py1
1 files changed, 1 insertions, 0 deletions
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')