【发布时间】:2021-12-20 00:39:47
【问题描述】:
我正在尝试制作一个不和谐的机器人,但是当我尝试添加另一个命令时,第二个命令无法识别。这是相关代码:
@bot.command()
async def parrot(ctx, *, arg):
await ctx.channel.send(arg)
async def talkparrot(ctx, *, arg):
await ctx.channel.send(arg, tts=True)
当我输入“.parrot arg1”时,它工作正常,但“.taklparrot arg1”不起作用。这是为什么呢?
【问题讨论】:
-
多次使用
@bot.command。对于每个命令 -
感谢@12944qwerty,如果您将其添加为答案将不接受它
标签: discord.py