A
A
Alice Cherry2019-12-29 15:09:46
Python
Alice Cherry, 2019-12-29 15:09:46

Why doesn't the bot work on Heroku?

I'm writing a bot on Discord. I'm trying to host on Heroku, everything seems to be successful:

2019-12-29T11:58:31.000000+00:00 app[api]: Build succeeded

But the bot itself is offline, showing no signs of life. However:
C:\Python\bot>heroku local
- and the bot works successfully, responds.
Procfile, requirements and more under the cut.

Procfile:
worker: bot.py
requirements.txt:
discord.py==1.2.3
aiohttp
websockets
chardet

runtime.txt:
python-3.7.3

Although, if it works locally, then why not work on the server.
With what it can be connected?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2019-12-29
@ytochka_alisa

Procfile: worker: python3 bot.py
heroku ps:scale worker=1

L
Lev Zabudkin, 2019-12-29
@zabudkin

with rights

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question