Preparing VPS
I prefer to use Bitvise to perform actions on a VPS, you can download it here.
Click on New Profile and save the profile to your preferred local directory. Fill in the data according to this panel, with your VPS IP than can be found on the Vultr Dashboard by clicking on your VPS, the Port is 22, on the right hand side, the username is root and select password for authentication method and the password is also on Vultr Dashboard for that VPS. When you've finished entering the information, click on Save Profile on the left.

At the bottom, click on Log In and then once its connected, click to open a New Terminal Console.

You should now have a window like below

Paste in this command to download the NodeJS package repository setup to your VPS.
Then run this command to execute it.
And finally do this command to install NodeJS from the newly added package locations.
To check that it has installed correctly, you can do the following command.
You will see something like the following, we are good as long as the version is 16 or higher.

Now that we have NodeJS installed, we want to install a NodeJS Module that can handle process monitoring to make sure the Bot will come back online after a system restart and also if it comes across an error it will automatically restart itself to maximise uptime.
This module is called PM2 and it can easily be installed using the following command.
and to make sure this runs at startup, we will use this command.
Our VPS is ready!
Last updated