Python discord.py在使用多处理时引发错误

Python discord.py在使用多处理时引发错误,python,multiprocessing,discord.py,Python,Multiprocessing,Discord.py,我在discord.py中有另一个进程。我想运行2机器人类 我试过了 来自多处理导入进程的 从discord.ext.commands导入Bot bot01=Bot(命令前缀=“!”) bot02=Bot(命令\u prefix=“2!”) def run_机器人(机器人,令牌): bot.run(令牌) 如果名称=“\uuuuu main\uuuuuuuu”: 进程(target=run\u bot,args=(bot,“bot01\u令牌”))。start() 进程(target=run\u

我在discord.py中有另一个进程。我想运行2机器人类

我试过了

来自多处理导入进程的

从discord.ext.commands导入Bot
bot01=Bot(命令前缀=“!”)
bot02=Bot(命令\u prefix=“2!”)
def run_机器人(机器人,令牌):
bot.run(令牌)
如果名称=“\uuuuu main\uuuuuuuu”:
进程(target=run\u bot,args=(bot,“bot01\u令牌”))。start()
进程(target=run\u bot,args=(bot,“bot02\u令牌”)).start()

但是它抛出:
eoferor:run-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-out-?不只是最后一行为什么要从同一个程序运行两个机器人?