@client.event
async def on_message(message):
if "squippy" in message.content:
if message.author.id == USER ID:
await message.channel.send("Nya Nya I'm your cat boy squip")
else:
await message.channel.send("I'm not *your* catboy pet")
if "quantum toaster" in message.content:
await message.channel.send("Let's get this bread")
if any(word in msg for word in bad_words_2):
await message.channel.send("Stop")
await client.process_commands(message) # This line would be needed
以便在使用on_消息的第一个实例后,其他命令能够工作。您需要在on_消息函数的末尾添加
await client.process_commands(message)
。我假设您链接的所有命令都在on_message
函数中相关问题 更多 >
编程相关推荐