-
Notifications
You must be signed in to change notification settings - Fork 370
Running the bot on Linux
Nir edited this page Dec 25, 2021
·
1 revision
- Setup a Debian/your favorite Linux distribution server
- Get Node.js LTS or latest (I recommend using NVM for that)
- Install Git
- Install Java 13 using step 1 in this guide, and then hit the command
sudo apt-get install zulu13-jdk
- Clone the repo
- Create a config.json in the root directory of the repo (see the README for instructions)
- Create an application.yml file in the root directory of the repo (see README again)
- Download a LavaLink jar directly to the root directory of the repo using
wget https://github.com/Cog-Creators/Lavalink-Jars/releases/download/3.4.0_1275/Lavalink.jar
- Install pm2 globally
npm install pm2 -g
- Run LavaLink with pm2
pm2 start "java -jar Lavalink.jar" --name lavalink
(must be run before running the bot) - Run the bot with
node index.js
or with pm2pm2 start "node index.js" --name master-bot
Read more on pm2 if you're interested