forked from rDrama/rDrama
better erro message
parent
67f968d04d
commit
40045eaa35
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue