From 6c239faacbc52dbea6c807456456a668b12edc99 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 12 Mar 2023 16:27:22 +0200 Subject: [PATCH] better notification when bite award expires --- files/helpers/awards.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/files/helpers/awards.py b/files/helpers/awards.py index ff62cb32e..05c99dc38 100644 --- a/files/helpers/awards.py +++ b/files/helpers/awards.py @@ -67,7 +67,13 @@ def award_timers(v, bot=False): badge = v.has_badge(167) if v.bite and v.bite < now: v.bite = None - notify_if_not_bot("Your vampire status has ended!") + + notif_text = "Your vampire status has ended." + if v.old_house: + house = v.old_house.replace(' Founder', '') + notif_text += f" You're now back in House {house}!" + notify_if_not_bot(notif_text) + v.house = v.old_house v.old_house = '' badge = v.has_badge(168)