【发布时间】:2021-05-30 00:13:05
【问题描述】:
基本上,我希望我的 discord 机器人对包含关键字的消息做出反应。我尝试了使用 if 语句的教程,但这两种方法都不起作用。
async def on_message(message):
if "react to me" in message.content.lower():
await client.react(message)```
【问题讨论】:
-
这里是添加reactions到消息的文档。尝试关注文档,最近更新的教程,您似乎指的是过时的教程。
标签: python discord discord.py