Bot goes offline after like a day
I host my discord bot has a file "warn_bot" so I write cd ... then node warn_bot.js the bot works flawlessly but after like 1 day the bot goes offline. I host the bot on my vps, no mess with my vps.
41 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!try using pm2
https://pm2.keymetrics.io
PM2 - Home
Advanced process manager for production Node.js applications. Load balancer, logs facility, startup script, micro service management, at a glance.
all i need to type "npm install pm2 -g"?
and then "pm2 start app.js"
since your file is warn_bot.js you'd do "pm2 start warn_bot.js" but yeah
it is online now?
yeah
oh thx!
np
I did this on vps, but doesn't seem to work
what vps are you using??
a swedish hosting site
swehosting
now its not working on my pc also
run "pm2 logs"
see if you find anything
scroll up