mirror of https://github.com/stijndcl/didier
Fix typing
parent
685e4d953e
commit
cc75dd8909
|
@ -163,7 +163,7 @@ async def gamble_dinks(
|
|||
if amount == "all":
|
||||
amount = bank.dinks
|
||||
|
||||
amount = min(amount, bank.dinks)
|
||||
amount = min(int(amount), bank.dinks)
|
||||
|
||||
sign = 1 if won else -1
|
||||
factor = (payout_factor - 1) if won else 1
|
||||
|
|
|
@ -31,11 +31,11 @@ class Gambling(commands.Cog):
|
|||
result: str = random.choice(["heads", "tails"])
|
||||
|
||||
# No stakes
|
||||
if amount is None:
|
||||
return await ctx.reply(f"{result.capitalize()}!", mention_author=False)
|
||||
|
||||
if guess is None:
|
||||
if amount is None:
|
||||
return await ctx.reply(f"{result.capitalize()}!", mention_author=False)
|
||||
else:
|
||||
guess = random.choice(["heads", "tails"])
|
||||
guess = random.choice(["heads", "tails"])
|
||||
|
||||
guess = guess.lower()
|
||||
|
||||
|
|
Loading…
Reference in New Issue