I want to place the bot discord written on rewrite, and not on the usual discord.py, but it seems that Heroku uses the usual discord.py just so the bot does not start. How to fix? Maybe you need to change something in pipfile (below)?

[[source]] url = "https://pypi.python.org/simple" verify_ssl = true [packages] django = "*" gunicorn = "*" django-heroku = "*" discord = "*" [requires] python_version = "3.6" 

UPD: I solved the problem by writing in the requirements:

-e git + https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]

1 answer 1

Oh, it's funny, I myself suffered for a week with Heroku, krch is simple, not depending on whether you use the github repository or the dropbox, it doesn't matter You must have a folder with the bot, i.e.

 BOT.py procces_file.py config.py Procfile requirements.txt runtime.txt 

You should have only 3 files of interest: 1. this is a Procfile there you just have to enter your bot, in my case it is: worker: BOT.py. 2. requirements.txt there you need to enter at least:

 discord.py (или свой API) aiohttp websockets chardet 

and then just type in the libraries you use in your bot. 3. runtime.txt: python-3.6.4 (or your own version of Python)

I don’t know for sure about libraries, but heroku basically supports python applications, so I think you should have no problems)

  • And what if I just need discord.py version 1.0.0a? Because Heroku loads exactly 0.16.6, which I don’t need - Lowenn