問(wèn)題描述
所以我一直在嘗試做一些事情,所以如果有人 dm 是你,它會(huì)回復(fù)一條消息.
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
類似的事情,所以基本上當(dāng)有人向您的 dms 發(fā)送消息時(shí),機(jī)器人會(huì)回復(fù)一條消息說(shuō)什么.
Something like that so basically when someone sends a message to your dms the bot will reply a message saying something.
推薦答案
如果不破壞 Discord TOS,你不能.因?yàn)槟阈枰粋€(gè) userbot 或 selfbot.基本上它的一些機(jī)器人充當(dāng)用戶(在你的情況下閱讀消息).而且大多數(shù)圖書(shū)館都放棄了對(duì) selfbots 的支持.
供參考:https://support.discordapp.com/hc/en-us/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 之外自動(dòng)化普通用戶帳戶(通常稱為self-bots"),如果發(fā)現(xiàn),可能會(huì)導(dǎo)致帳戶終止.
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.
這篇關(guān)于自動(dòng)回復(fù)直接消息的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!