better notification when bite award expires

pull/139/head
Aevann 2023-03-12 16:27:22 +02:00
parent 9dd6c3f831
commit 6c239faacb
1 changed files with 7 additions and 1 deletions

View File

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