2024-05-16 00:52:04 发布
网友
我希望能够键入“@Hu Tao bot prefix”,bot将使用当前前缀进行响应,由于某些原因,它无法工作,并且它也不会显示错误消息,我当前的前缀是: client = commands.Bot(command_prefix = '-')
client = commands.Bot(command_prefix = '-')
您可以在事件中使用message.mentions:-
message.mentions
@client.event async def on_message(message): if client.user in message.mentions: await message.channel.send("You can type `tnj.help` for help") await client.process_commands(message)
您可以在事件中使用
message.mentions
:-相关问题 更多 >
编程相关推荐