自动回复直接消息

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.

这篇关于自动回复直接消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Play local music files using djs v13(使用 djs v13 播放本地音乐文件)
Making a bot delete its own message after a timeout(让机器人在超时后删除自己的消息)
How do I upload a custom emoji to my discord bot(如何将自定义表情符号上传到我的不和谐机器人)
Discord.js meme command with meme subreddit returns image as 403 forbidden(带有 meme subreddit 的 Discord.js meme 命令将图像返回为 403 禁止)
How to get snekfetch results into an object?(如何将 snekfetch 结果放入对象中?)
Get user banner in discord.js(在 discord.js 中获取用户横幅)