如何使命令在任何情况下都能工作?也就是说,用户可以写!Teama!TeamA!TEAMa等,命令无论如何都应该起作用?https://i.stack.imgur.com/AZfzB.png
这是我的代码:
a = "asd"
@client.command(pass_context=True)
async def teama(ctx):
await ctx.send(a)
您只需在声明bot时指定它:
bot = commands.Bot(command_prefix='!', case_insensitive=True)