Reputation: 53
So, I have the code like this:
Sorry, the editor said too much code so I got to move it to codeshare.
The bot is up, can receive messages and log to console, BUT, it doesn't log to console that Logged in!
message, which means the bot is not ready
, and though the bot can receive command and log it to console, it dose not perform any responds. See log below:
2020-07-07T14:39:44.000000+00:00 app[api]: Build started by user *censored*
2020-07-07T14:40:01.359235+00:00 heroku[worker.1]: Restarting
2020-07-07T14:40:01.373843+00:00 heroku[worker.1]: State changed from up to starting
2020-07-07T14:40:01.188192+00:00 app[api]: Release v8 created by user *censored*
2020-07-07T14:40:01.188192+00:00 app[api]: Deploy 5ad6fb20 by user *censored*
2020-07-07T14:40:02.483212+00:00 heroku[worker.1]: Stopping all processes with SIGTERM
2020-07-07T14:40:02.587261+00:00 heroku[worker.1]: Process exited with status 143
2020-07-07T14:40:02.000000+00:00 app[api]: Build succeeded
2020-07-07T14:40:04.535781+00:00 heroku[worker.1]: Starting process with command `node .`
2020-07-07T14:40:05.339920+00:00 heroku[worker.1]: State changed from starting to up
2020-07-07T14:40:12.340512+00:00 app[worker.1]: Iamnoot nho : about
And this is the screenshot from discord window:
Edit: the Logged in!
message problem was because the state at client.once('Ready', () => {
must be ready
:D
Upvotes: 0
Views: 419
Reputation: 74
There is many possibilities
(line 3, you declared invite_link
, so why not put it line 10 in your MessageEmbed)
"scripts": {
"start": "node (your file here)"
},
2nd option create a ProcFile file, with
node (your file here)
and then go to heroku, deploy your changes and go to "Ressources"
click on the pen, and enable the worker, click on save and normally it should work
Upvotes: 1