Alright! It only get easier now! I’m going to spoon-feed it all to you from here!
We are going to get your Discord Bot Running Now.
Once you purchased our product license, the UpLegacy Product Manager should have direct messaged you your product key, and download command. Run this download command and continue on!
(Unsure about your Download Command?
It starts with sudo git close https://
Still need help? Contact support or open a ticket!)
Once you have downloaded the software, cd in the scbot directory. Now nano into bot.js (sudo nano /home/user/scbot/bot.js) and configure your settings! The following settings are available for you to configure!
token = Replace inside the quotes with your Discord Bot Token found at discord.com/developers.
clientId = Replace this value with your discord application's Client ID!
guildId = ''; Replace this value with the ID of your primary discord server. (Discord Developer mode must be enabled.)
resetRoleId = ''; Replace this with the RoleID that you would like to have access to reset the activity logs!
activityRoleId= ''; Replace with your RoleID for users who should be able to run the /activity command to view session data!
Replace all the config details (use role id's) and now run Control + X and save your file!
Now run:
cd
In the main terminal run:
sudo apt install npm nodejs -y
And after that is done, run
sudo npm i
sudo apt install -g pm2
This will install all your node modules, and the process manager 2 package!
Now lets get your bot rolling!
First, cd into the directory. (sudo cd /scbot)
Now run:
sudo pm2 start bot.js
Now lets allow PM2 to Start on Boot!
sudo pm2 startup
This will output a command specific to your Linux distribution. Run the command as instructed.
Finally, lets save the current processes:
pm2 save
Now your bot should be running successfully!
Lets move onto the API Startup!