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.基本上它的一些机器人充当用户(在你的情况下阅读消息).而且大多数图书馆都放弃了对 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 之外自动化普通用户帐户(通常称为self-bots"),如果发现,可能会导致帐户终止.
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.
这篇关于自动回复直接消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:自动回复直接消息
基础教程推荐
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
