Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何执行另一个bot命令_Python_Discord_Discord.py - Fatal编程技术网

Python 如何执行另一个bot命令

Python 如何执行另一个bot命令,python,discord,discord.py,Python,Discord,Discord.py,所以我想制作一个有一些调节功能的discord机器人,我想让我的机器人执行MEE6的!warn命令,但它永远不会工作。它总是只写命令,但我永远无法执行它 我的剧本: if ("something") in content: await message.channel.send(f"{message.author.mention}**you cant do that!**") x = 1 await messa

所以我想制作一个有一些调节功能的discord机器人,我想让我的机器人执行MEE6的
!warn
命令,但它永远不会工作。它总是只写命令,但我永远无法执行它

我的剧本:

if ("something") in content:
        await message.channel.send(f"{message.author.mention}**you cant do that!**")
        x = 1
        await message.channel.send(f"!warn {message.author.mention} you cant do that").format(message)       

这行不通。Mee6以及所有编写良好的机器人都会对其他机器人做出响应。要做到这一点,唯一的方法是使用一个自助机器人,它是针对discord的ToS的

这是行不通的。Mee6以及所有编写良好的机器人都会对其他机器人做出响应。这样做的唯一方法是使用自助机器人,这是针对discord的ToS的

可能MEE6机器人有一个检查命令以确保机器人无法使用它们。可能MEE6机器人有一个检查命令以确保机器人无法使用它们。