forked from rDrama/rDrama
1
0
Fork 0

elaborate in lottershe message

master
Aevann1 2022-06-13 18:30:27 +02:00
parent c8e0d8b1c3
commit 6d1f7646ba
1 changed files with 2 additions and 2 deletions

View File

@ -49,10 +49,10 @@ def end_lottery_session():
chance_to_win = user.currently_held_lottery_tickets / len(raffle) * 100
if user.id == winner:
notification_text = f'You won {active_lottery.prize} coins in the lottery! ' \
+ f'Congratulations!\nOdds of winning: {chance_to_win}%'
+ f'Congratulations!\nYour odds of winning were: {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}%\nWinner: @{winning_user.username} (won {active_lottery.prize} coins)'
+ f'Your odds of winning were: {chance_to_win}%\nWinner: @{winning_user.username} (won {active_lottery.prize} coins)'
send_repeatable_notification(user.id, notification_text)
user.currently_held_lottery_tickets = 0