Fix typing

pull/181/head
stijndcl 2024-02-12 20:16:52 +01:00
parent 685e4d953e
commit cc75dd8909
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -31,10 +31,10 @@ class Gambling(commands.Cog):
result: str = random.choice(["heads", "tails"])
# No stakes
if guess is None:
if amount is None:
return await ctx.reply(f"{result.capitalize()}!", mention_author=False)
else:
if guess is None:
guess = random.choice(["heads", "tails"])
guess = guess.lower()