S
S
Shadow00111762021-11-04 12:26:18
Python
Shadow0011176, 2021-11-04 12:26:18

Why does the bot on github heroku not work?

2021-11-04T06:43:31.882953+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/discord/client.py", line 38, in <module>
2021-11-04T06:43:31.883023+00:00 app[worker.1]:     from .state import ConnectionState
2021-11-04T06:43:31.883032+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/discord/state.py", line 36, in <module>
2021-11-04T06:43:31.883099+00:00 app[worker.1]:     from . import utils, compat
2021-11-04T06:43:31.883111+00:00 app[worker.1]:   File "/app/.heroku/python/lib/python3.9/site-packages/discord/compat.py", line 32
2021-11-04T06:43:31.883120+00:00 app[worker.1]:     create_task = asyncio.async
2021-11-04T06:43:31.883210+00:00 app[worker.1]:                           ^
2021-11-04T06:43:31.883226+00:00 app[worker.1]: SyntaxError: invalid syntax
2021-11-04T06:43:32.032637+00:00 heroku[worker.1]: Process exited with status 1
2021-11-04T06:43:32.246073+00:00 heroku[worker.1]: State changed from up to crashed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2021-11-04
@Zoominger

Try changing create_task = asyncio.async to create_task = getattr(asyncio, 'async') .
And the version of Piston on the server is not 3.7, is it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question