@bot.command()
async def бонус(ctx):
await open_acc(ctx.author)
users = await get_bank()
users[str(ctx.author.id)]["wallet"] += 1
@bot.command()
@commands.cooldown(1, 86400, commands.BucketType.user)
async def бонус(ctx):
await open_acc(ctx.author)
users = await get_bank()
await ctx.reply("Выдан бонус! +1 монета")
users[str(ctx.author.id)]["wallet"] += 1
with open("mainbank.json", "w") as f:
json.dump(users, f)