不和谐中的消息内容未触发

时间:2021-07-13 15:26:42

标签: python python-3.x discord discord.py

@client.command()
@commands.cooldown(1, 700, commands.cooldowns.BucketType.user)
async def work(ctx):
    await open_account(ctx.author)

    users = await get_bank_data()
    user = ctx.author
    earnings = random.randrange(0, 12500)
    num = random.randrange(0, 1200)
    nummie = random.randrange(0, 1200)

    await ctx.send(f"Hey, little poor man what is {num}+{nummie}?")
    results = num + nummie

    if ctx.message.content == results:
        await ctx.send("Correct!")

    users[str(user.id)]["wallet"] += earnings

    with open("bank.json", "w") as f:
        json.dump(users, f, indent=4)

每次我输入结果它都不会触发或做任何事情 我只是想让这个工作谢谢你的帮助

0 个答案:

没有答案