Tell ppl who won the lottery in loss messages

master
Aevann1 2022-06-10 16:53:29 +02:00
parent e483accffb
commit 05d6a24535
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def end_lottery_session():
+ f'Congratulations!\nOdds of winning: {chance_to_win}%' + f'Congratulations!\nOdds of winning: {chance_to_win}%'
else: else:
notification_text = f'You did not win the lottery. Better luck next time!\n' \ notification_text = f'You did not win the lottery. Better luck next time!\n' \
+ f'Odds of winning: {chance_to_win}%' + f'Odds of winning: {chance_to_win}%\nWinner: @{winning_user.username}'
send_repeatable_notification(user.id, notification_text) send_repeatable_notification(user.id, notification_text)
user.currently_held_lottery_tickets = 0 user.currently_held_lottery_tickets = 0