自动回复直接留言 [英] Auto-reply to direct messages
问题描述
所以我一直在尝试做某事,所以如果有人dm是您,它将以一条消息答复.
So I've been trying to do something so if someone dm's you, it'll reply with a message.
示例:
Friend: Hey
Bot: I'm afk
基本上是这样的,当有人向您的dms发送消息时,机器人会回复一条消息,说些什么.
Something like that so basically when someone sends a message to your dms the bot will reply a message saying something.
推荐答案
在不破坏Discord TOS的情况下,您不能.因为您将需要一个userbot或selfbot.基本上,它是充当用户的某种机器人(在您的情况下,是读取消息).而且大多数库都放弃了对自动机器人的支持.
供参考: https://support.discordapp.com/hc/zh-CN/articles/115002192352-Automated-user-accounts-self-bots-
Without breaking Discord TOS you can't. Because you would need to have a userbot or selfbot. Basically its some bot that acts as the user (in your case reading the messages). And most libraries are dropping the support for selfbots.
For reference: https://support.discordapp.com/hc/en-us/articles/115002192352-Automated-user-accounts-self-bots-
禁止在OAuth2/bot API之外自动执行普通用户帐户(通常称为自助机器人"),如果找到该帐户,则可能会导致帐户终止.
Automating normal user accounts (generally called "self-bots") outside of the OAuth2/bot API is forbidden, and can result in an account termination if found.
这篇关于自动回复直接留言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!