From 0db9bf14b9c1eb53fc0d3d66ad30b823a5621ba1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 23 Sep 2022 15:15:56 +0200 Subject: [PATCH] add the expiry code for spider award lol --- files/helpers/awards.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/helpers/awards.py b/files/helpers/awards.py index 502da206f..a535dae3e 100644 --- a/files/helpers/awards.py +++ b/files/helpers/awards.py @@ -87,6 +87,12 @@ def award_timers(v, bot=False): v.rainbow = None notify_if_not_bot("Your rainbow has expired!") badge = v.has_badge(171) + if badge: g.db.delete(badge) + if v.spider and v.spider < now: + v.spider = None + notify_if_not_bot("Your spider friend has left you!") + badge = v.has_badge(179) + if badge: g.db.delete(badge) g.db.add(v)