Python 部署时heroku推送错误上的Discord bot

Python 部署时heroku推送错误上的Discord bot,python,heroku,bots,Python,Heroku,Bots,我为我个人在discord中使用制作了一个小机器人,我想把它放在Heroku上,但是我在部署应用程序时遇到了麻烦,代码在github上的一个私有存储库中 我已经制作了Procfile,requirement.txt和runtime.txt 几个月前,我制作了另一个discord.py bot(discord.py的异步版本),我使用的文件与我现在想要使用的文件相同 我的Procfile: worker:python3main.py Myrequirements.txt: discord.py==

我为我个人在discord中使用制作了一个小机器人,我想把它放在Heroku上,但是我在部署应用程序时遇到了麻烦,代码在github上的一个私有存储库中

我已经制作了
Procfile
requirement.txt
runtime.txt
几个月前,我制作了另一个discord.py bot(discord.py的异步版本),我使用的文件与我现在想要使用的文件相同

我的
Procfile
worker:python3main.py

My
requirements.txt

discord.py==1.2.3
My
runtime.txt
python-3.7.4

我的python代码

导入操作系统
进口不和
从discord.ext导入命令
client=commands.Bot(command_prefix=“/”)
client.remove_命令(“帮助”)
#事件
@客户端事件
_ready()上的异步定义:
打印(“Kitsune机器人:在线”)
对于os.listdir('./cogs')中的文件:
如果文件.endswith('.py'):
尝试:
client.load_扩展名(f'cogs.{files[:-3]}')
打印(“{}正在运行!”。格式(文件))
除异常作为错误外:
打印(错误)
client.run()
预期结果是bot联机并响应我的所有函数调用,但实际结果是在heroku上部署应用程序时出错:

-----> Installing python-3.7.4

-----> Installing pip

-----> Installing requirements with pip

 !     Push rejected, failed to compile Python app.

 !     Push failed```

需求需要是
文件
而不是txt文件 您可以通过执行
touch requirements