@commands.command(aliases = ["тест"])
async def test(self, ctx):
users = await get_bank_data()
user = ctx.author
wallet_amt = users[str(user.id)]["wallet"]
embed = discord.Embed(
title = f"Зарплата для {user.name}:",
colour = discord.Colour.red()
)
print("test")
# Барыга
if discord.utils.find(lambda r: r.name == f"{roles.BARIGA_NAME}", ctx.message.guild.roles) in user.roles:
earnings = 150
# await open_account(self, user)
# wallet_amt += earnings
# with open('mainbank.json', "w") as f:
# json.dump(users, f)
embed.add_field(
name =
f"""
**Барыга**:""",
value =
f"""
- Собрано **{earnings}**!"""
)
print("тест")
await ctx.send(embed = embed)
print("test")