mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
Update session.py (#3666)
This commit is contained in:
parent
3e1bb88ab7
commit
23eae27a8f
@ -303,7 +303,10 @@ class TriviaSession:
|
|||||||
amount = int(multiplier * score)
|
amount = int(multiplier * score)
|
||||||
if amount > 0:
|
if amount > 0:
|
||||||
LOG.debug("Paying trivia winner: %d credits --> %s", amount, str(winner))
|
LOG.debug("Paying trivia winner: %d credits --> %s", amount, str(winner))
|
||||||
await bank.deposit_credits(winner, int(multiplier * score))
|
try:
|
||||||
|
await bank.deposit_credits(winner, int(multiplier * score))
|
||||||
|
except bank.BalanceTooHigh as e:
|
||||||
|
await bank.set_balance(winner, e.max_balance)
|
||||||
await self.ctx.send(
|
await self.ctx.send(
|
||||||
_(
|
_(
|
||||||
"Congratulations, {user}, you have received {num} {currency}"
|
"Congratulations, {user}, you have received {num} {currency}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user