How to setup Corebot on a Linux operating system.
Make sure you have completed our pre-installation guide https://docs.corebot.dev/Setup/Pre-Installation
These commands may not work for all Linux distributions. Open a ticket in our Discord server if you have any questions.
Debian/Ubuntu
apt-get install autoconf automake g++ libtool build-essential
CentOS
sudo yum groupinstall "Development Tools"
Make sure you have the bot uploaded
Go to your bot's directory
Start the bot with pm2 by running the following commands:
npm i pm2 -g
npm i
pm2 start index.js --name corebot
If there are any errors while running these commands, please make sure you have installed the required Linux dependencies. If you have, create a ticket in our support server!
Start the bot: pm2 start corebot
Stop the bot: pm2 stop corebot
Restart the bot: pm2 restart corebot
View the bot's recent logs and live console: pm2 logs corebot
View all the bot's past logs: pm2 logs corebot --lines 1000 | nc termbin.com 9999
Remember, if you have any issues, please join our support server and create a ticket!
You are expected and required to know basic Linux