Linux Installation
Instructions:
Login to your server through SSH/open your terminal
Upload the bot files into a folder of your choice.
Make sure you have the required Linux packages installed (Dependencies)
Be sure to use the cd < file path > command to change the terminal's path to your bot's directory.
Install all node modules, you can do this by running this command
npm install
And then you can run the
node index
command to start the bot.
PM2 (OPTIONAL)
You can use PM2 to keep the bot online even when you close the terminal.
How to use PM2:
Start the bot with PM2 by running the following commands:
PM2 Power Controls:
Start the bot: pm2 start <botname>
Stop the bot: pm2 stop <botname>
Restart the bot: pm2 restart <botname>
View the bot's recent logs and live console: pm2 logs <botname>
Last updated