执行来自另一个机器人的命令
在我的不和谐机器人上,我想创建一个脚本,在循环中执行 2 命令,但时间不同。命令是 d!碰撞(来自 d-invite)和 !d 碰撞。我知道这可能不尊重不和谐的 TOS 或者可能不可能,但是有办法做到吗?
on my discord bot, i want to create a script that execute 2 commands in a loop, but with different timing. the commands are d! bump (from d-invite) and !d bump. I know this might not respect the discord TOS or might not be possible, but is there anyway to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不太明白你的问题,但希望这可以帮助你。您可以尝试
on_message
< /a> 在 nextcord 中。I not really understand your issue but hope this can help you. You can try
on_message
in nextcord.这些机器人可能会检查发送命令的用户是否是机器人,因此您可能无法欺骗它。
Nextcord 中的任务扩展可能正是您正在寻找的:
https: //nextcord.readthedocs.io/en/latest/ext/tasks/index.html
它允许您在循环中执行代码。
Those bots probably check if the user who sent the command is a bot, so you likely won't be able to trick it.
The tasks extension in Nextcord is probably what you are looking for though:
https://nextcord.readthedocs.io/en/latest/ext/tasks/index.html
It allows you to execute code in a loop.