Keep the bot online

So, this is probably a VERY stupid question. I have a VPS, opened an SSH session using PuTTy, and executed node index.js. The bot became online, and commands worked beautiful. So I closed PuTTy. But after a few minutes, the bot went offline again. I though it would be as simple as just running the file, and then go go bot, but apparently not. Do I need to install a program like pm2 ? (Because this programm was used for pcs where I found it, so I don't know) Thank you very much for your time !
3 Replies
d.js toolkit
d.js toolkit2y ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
Squid
Squid2y ago
Yes, pm2 will work for you Otherwise, the process dies whenever the terminal closes (when you closed PuTTy)
Alzalia
AlzaliaOP2y ago
Okay, thank you very much ^^
Want results from more Discord servers?
Add your server