如果有人在聊天中说嘿,我希望机器人 dm 他们,但它绝对没有错误,也不起作用
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.lower == "hey":
await message.author.send("heyo")
await message.add_reaction(":b:")
await client.process_commands(message)