I was working on my discord bot today, and uploading it to heroku. I did everything my tutorial said to do, but when I flicked the deploy switch on the bot stayed offline. Has this problem happened to anyone else? Has anyone found a solution?
CodePudding user response:
His tutorial needs to be updated because it contains the incorrect way to list the discord.py library dependency. To fix your issue, you need to remove the @rewrite
in the Github link in your requirements.txt
file. However, instead of removing the @rewrite
, just specify the discord version. Replace your requirements.txt
file with the following:
discord.py==1.6.0
PyNaCl==1.3.0
pandas
dnspython==1.16.0
async-timeout==3.0.1
CodePudding user response:
- Make sure you have clicked 'confirm' after clicking the switch you mentioned in the resources tab.
- Make sure
Procfile
's first letter (P) is uppercase. - Make sure
requirements.txt
has the correct credentials. (You can get the version of modules you are using by doingpip freeze
on your terminal) - Make sure you have entered your bot token in config vars
- If the bot still doesn't come online then goto
applications -> more -> View logs
to see if worker raised any errors.