better erro message

master
Aevann 2023-08-08 20:02:47 +03:00
parent 67f968d04d
commit 40045eaa35
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ def check_slots_command(c, v, u):
if (currency == "coins" and wager > u.coins) or (currency == "marseybux" and wager > u.marseybux):
if v.id == u.id:
abort(400, f"Not enough {currency} to make that bet")
abort(400, f"You don't have enough {currency} to make that bet!")
return
game_id, game_state = casino_slot_pull(u, wager, currency)

View File

@ -101,7 +101,7 @@ def pull_slots(v):
abort(400, "Invalid currency (expected 'coins' or 'marseybux').")
if (currency == "coins" and wager > v.coins) or (currency == "marseybux" and wager > v.marseybux):
abort(400, f"Not enough {currency} to make that bet")
abort(400, f"You don't have enough {currency} to make that bet!")
game_id, game_state = casino_slot_pull(v, wager, currency)
success = bool(game_id)