简体   繁体   English

discord 机器人通过 python 添加对消息的反应

[英]discord bot adding reaction to message via python

I wanna make a bot react with the normal emojis to a message when a certain word is used in the message but I can't seem to find any solution that work for current version of discord.py.当消息中使用某个单词时,我想让机器人对消息做出反应,但我似乎找不到任何适用于当前版本的 discord.py 的解决方案。 Can anyone help me with a format I can use?任何人都可以帮助我使用我可以使用的格式吗?

You should read the documentation of discordpy .您应该阅读discordpy的文档。 It shows there how to add a reaction to a message and has plenty of explanations (I attached the specific link to your problem).它在那里展示了如何对消息添加反应并有大量解释(我将特定链接附加到您的问题)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM