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 !
Was this page helpful?