From adefc09ae9e62699d624b35c9e1a2ed9c38196d5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 11 Jun 2022 16:40:53 +0200 Subject: [PATCH] rename "dramacoins" to "coins", so that it works on other sites --- files/helpers/lottery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/lottery.py b/files/helpers/lottery.py index 73858ca1b1..a34a00986c 100644 --- a/files/helpers/lottery.py +++ b/files/helpers/lottery.py @@ -48,7 +48,7 @@ def end_lottery_session(): for user in participating_users: chance_to_win = user.currently_held_lottery_tickets / len(raffle) * 100 if user.id == winner: - notification_text = f'You won {active_lottery.prize} dramacoins in the lottery! ' \ + notification_text = f'You won {active_lottery.prize} coins in the lottery! ' \ + f'Congratulations!\nOdds of winning: {chance_to_win}%' else: notification_text = f'You did not win the lottery. Better luck next time!\n' \ @@ -60,7 +60,7 @@ def end_lottery_session(): g.db.commit() - return True, f'{winning_user.username} won {active_lottery.prize} dramacoins!' + return True, f'{winning_user.username} won {active_lottery.prize} coins!' def start_new_lottery_session(): @@ -96,7 +96,7 @@ def purchase_lottery_tickets(v, quantity=1): if quantity < 1: return False, "Must purchase one or more lottery tickets." elif (v.coins < LOTTERY_TICKET_COST * quantity): - return False, f'Lottery tickets cost {LOTTERY_TICKET_COST} dramacoins each.' + return False, f'Lottery tickets cost {LOTTERY_TICKET_COST} coins each.' most_recent_lottery = get_active_lottery() if (most_recent_lottery is None):