You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
elifint(amount) >currency.get_wallet(ctx.author.id): returnawaitctx.respond('The amount to deposit must not be more than what you have in your wallet!', ephemeral=True)
564
549
currency.deposit(ctx.author.id, int(amount))
565
550
localembed=discord.Embed(title="Deposit successful", description=f"You deposited `{amount}` coin(s) to your bank account.", color=color)
566
-
localembed.add_field(name="You previously had", value=f"`{currency.get_bank(ctx.author.id) -amount} coins` in your bank account")
551
+
localembed.add_field(name="You previously had", value=f"`{currency.get_bank(ctx.author.id) -int(amount)} coins` in your bank account")
567
552
localembed.add_field(name="Now you have", value=f"`{currency.get_bank(ctx.author.id)} coins` in your bank account")
elifint(amount) >currency.get_bank(ctx.author.id): returnawaitctx.respond('The amount to withdraw must not be more than what you have in your bank account!', ephemeral=True)
582
567
currency.withdraw(ctx.author.id, int(amount))
583
568
localembed=discord.Embed(title="Withdraw successful", description=f"You withdrew `{amount}` coin(s) from your bank account.", color=color)
584
-
localembed.add_field(name="You previously had", value=f"`{currency.get_wallet(ctx.author.id) -amount} coins` in your wallet")
569
+
localembed.add_field(name="You previously had", value=f"`{currency.get_wallet(ctx.author.id) -int(amount)} coins` in your wallet")
585
570
localembed.add_field(name="Now you have", value=f"`{currency.get_wallet(ctx.author.id)} coins` in your wallet")
0 commit comments