Hosting

PM2

PM2 allows you to keep the bot running and if it crashes it will go back online

If you are hosting on your pc your bot will stop if your pc turns off. Virtual Private Servers are highly recommended!

To install pm2 globally run npm install pm2 -g

Make sure you are in the bot's directory

To start your bot with pm2: pm2 start bot.js

To stop your bot with pm2: pm2 stop bot

To reboot your bot with pm2: pm2 reboot bot

To delete your bot from pm2: pm2 delete bot