【问题标题】:My bot is suddenly not working from heroku anymore, it stopped appearing 'online'我的机器人突然不再从 heroku 工作了,它不再出现“在线”
【发布时间】:2020-11-11 20:16:27
【问题描述】:

我不确定我做错了什么或没有做什么,但我正在尝试更新我的机器人程序(这是我经常做的事情),但这次它拒绝工作,并且“坏了” ' 我的机器人。

登录后输入cmd>set HomeDrive=C:/Users/(windows name)/AppData/Local/heroku

出现了错误Error: ENOENT: no such file or directory,这很奇怪,因为这通常由上述命令修复,我用谷歌搜索并发现了如何添加_netrc 文件,我做到了。

然后我得到了TypeError: __ new __() got an unexpected keyword argument 'deny_new' 错误,我通过更新我的discord.pypip 修复了这个错误。

现在,一切似乎都正常,我输入cmd>git push heroku master,一切都正常部署。但是,当我在 heroku 网站上打开存储库时,我的机器人(无论我等待多少次和等待多长时间)都不会再次上线。

【问题讨论】:

    标签: heroku discord bots discord.py discord.py-rewrite


    【解决方案1】:

    确保更新存储库中的环境。 pipfilerequirements.txt 最好能指定在本地 PC 上工作的确切版本。

    还要确保procfileruntime.txt 是正确的。

    【讨论】:

      猜你喜欢
      • 2014-04-16
      • 2017-08-09
      • 1970-01-01
      • 2021-10-28
      • 1970-01-01
      • 2016-12-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多