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.
这篇关于自动回复直接消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:自动回复直接消息


基础教程推荐
- 如何使用JIT在顺风css中使用布局变体? 2022-01-01
- 我可以在浏览器中与Babel一起使用ES模块,而不捆绑我的代码吗? 2022-01-01
- 直接将值设置为滑块 2022-01-01
- Chart.js 在线性图表上拖动点 2022-01-01
- Vue 3 – <过渡>渲染不能动画的非元素根节点 2022-01-01
- 自定义 XMLHttpRequest.prototype.open 2022-01-01
- 如何使用TypeScrip将固定承诺数组中的项设置为可选 2022-01-01
- Electron 将 Node.js 和 Chromium 上下文结合起来意味着 2022-01-01
- 用于 Twitter 小部件宽度的 HTML/CSS 2022-01-01
- html表格如何通过更改悬停边框来突出显示列? 2022-01-01