Aevann 2024-04-18 14:55:36 +02:00
parent 96185fefcf
commit 7ed744caff
1 changed files with 2 additions and 3 deletions

View File

@ -391,9 +391,8 @@ def _set_top_poster_of_the_day_id():
user = user[0]
t = datetime.datetime.now()
db.flush()
send_notification(user.id, f":marseyjam: You're the Top Poster of the Day for the day of {t.year}-{t.month}-{t.day} :marseyjam:")
date = time.strftime("%B %d, %Y", time.gmtime())
send_notification(user.id, f":marseyjam: Congratulations! You're the Top Poster of the Day for {date}! :marseyjam:")
badge_grant(badge_id=327, user=user)
cache.set("top_poster_of_the_day_id", user.id, timeout=86400)