From 05d6a24535c3835b1d131cda4d552c62526af62b Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 10 Jun 2022 16:53:29 +0200 Subject: [PATCH] Tell ppl who won the lottery in loss messages --- files/helpers/lottery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index 9f9323870..7c83330fd 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -52,7 +52,7 @@ def end_lottery_session(): + f'Congratulations!\nOdds of winning: {chance_to_win}%' else: 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) user.currently_held_lottery_tickets = 0