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
d.js toolkit
d.js toolkit9mo ago
- 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!
hey.o
hey.o9mo ago
PM2 - Home
Advanced process manager for production Node.js applications. Load balancer, logs facility, startup script, micro service management, at a glance.
Novuz
Novuz9mo ago
all i need to type "npm install pm2 -g"? and then "pm2 start app.js"
hey.o
hey.o9mo ago
since your file is warn_bot.js you'd do "pm2 start warn_bot.js" but yeah
Novuz
Novuz9mo ago
it is online now?
hey.o
hey.o9mo ago
yeah
Novuz
Novuz9mo ago
oh thx!
hey.o
hey.o9mo ago
np
Novuz
Novuz9mo ago
I did this on vps, but doesn't seem to work
hey.o
hey.o9mo ago
what vps are you using??
Novuz
Novuz9mo ago
a swedish hosting site swehosting now its not working on my pc also
hey.o
hey.o9mo ago
run "pm2 logs" see if you find anything
Novuz
Novuz9mo ago
hey.o
hey.o9mo ago
scroll up
Novuz
Novuz9mo ago
Want results from more Discord servers?
Add your server