Python 希罗库;Discord.py:尝试从同一个Procfile运行两个bot

Python 希罗库;Discord.py:尝试从同一个Procfile运行两个bot,python,python-3.x,heroku,discord.py,Python,Python 3.x,Heroku,Discord.py,我已添加此Procfile代码: worker: python jervis-1.py & python jervis-2.py & wait -n 它应该至少运行一个bot,但不运行bot。我真的不知道如何修复这个错误,以及我应该提供哪些详细信息。 如果你想问我任何细节 谢谢 更新: 这是heroku的构建日志: -----> Building on the Heroku-20 stack -----> Using buildpack: heroku/python

我已添加此Procfile代码:

worker: python jervis-1.py & python jervis-2.py & wait -n
它应该至少运行一个bot,但不运行bot。我真的不知道如何修复这个错误,以及我应该提供哪些详细信息。 如果你想问我任何细节

谢谢

更新: 这是heroku的构建日志:

-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app detected
-----> Using Python version specified in runtime.txt
 !     Python has released a security update! Please consider upgrading to python-3.9.5
       Learn More: https://devcenter.heroku.com/articles/python-runtimes
-----> No change in requirements detected, installing from cache
-----> Using cached install of python-3.9.3
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
-----> Discovering process types
       Procfile declares types -> worker
-----> Compressing...
       Done: 80.4M
-----> Launching...
       Released v17
       https://jervis-bots.herokuapp.com/ deployed to Heroku

worker:python-C jervis-1.py和python jervis-2.py&wait-n
应该可以工作。

wait-n
之前的
替换为
&
@driffasimov噢,不!那是我犯的可怕的看不见的错误。我在添加
&
的整个过程中都在思考。TwT@DriftAsimov我做到了。但是机器人仍然处于脱机状态。您如何在每个文件中运行机器人?它们是完全不同的机器人还是相同的源代码和不同的帐户?为什么不使用线程并在一个文件中运行它们?机器人没有联机。@BhavyadeepYadav日志中有任何内容吗?我已将日志添加到问题中。。。请检查!日志显示一切正常。@BhavyadeepYadav您可以检查以下问题: