From c82116caf05bc283136f32b283b39f05a62347b8 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 7 Aug 2021 11:05:19 +0200 Subject: [PATCH] Adding Lavalink --- README.md | 4 ++-- docker-compose.yml | 15 +++++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bbbb029..83b1755 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ To find Genius token, go to [this site](https://genius.com/api-clients), `login ## __Launching locally__ If you want to run it without Docker, create an .env file to store variables in the root folder (there is an example [here](https://gitlab.com/ConfrerieDuKassoulait/KassouBot/-/blob/main/.envexample)). -Install ffmpeg by doing `sudo apt install ffmpeg` and all the requirements by doing `python3 -m pip install -r requirements.txt`. +Install all the requirements by doing `python3 -m pip install -r requirements.txt`. -Then if youre using music, download Lavalink v3.3.2.5 in the `src` folder by running this in root folder `curl -sLo src/Lavalink.jar https://github.com/freyacodes/Lavalink/releases/download/3.3.2.5/Lavalink.jar`. +Then if youre using music, download latest version of [Lavalink](https://github.com/freyacodes/Lavalink/releases/latest) inside the `Lavalink` folder. Simply run `python3 main.py` inside the `src` folder to launch the bot in the repo folder. diff --git a/docker-compose.yml b/docker-compose.yml index 40001f6..035ef3b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,8 @@ version: "2.1" services: kassoubot: - image: registry.gitlab.com/confreriedukassoulait/kassoubot - container_name: KassouBot + image: registry.gitlab.com/confreriedukassoulait/kassoubot:latest + container_name: KassouBot-Core environment: - TOKEN_DISCORD=yourTokenDiscord - TOKEN_GENIUS=yourTokenGenius @@ -13,4 +13,15 @@ services: - PREFIX=yourPrefix volumes: - /here/your/path/:/db + - /here/your/path/:/Lavalink # Use this if you want to use the cog music.py + restart: unless-stopped + + # Use this if you want to use the cog music.py, otherwise delete this part + lavalink: + image: fredboat/lavalink:master + container_name: KassouBot-Lavalink + ports: + - 5432:5432 + volumes: + - /here/your/path/:/ # Use the same path as the one for the Lavalink folder in kassoubot service restart: unless-stopped