Adding Lavalink
This commit is contained in:
parent
ad3ecc7e5f
commit
c82116caf0
2 changed files with 15 additions and 4 deletions
|
@ -47,8 +47,8 @@ To find Genius token, go to [this site](https://genius.com/api-clients), `login
|
||||||
## __Launching locally__
|
## __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)).
|
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.
|
Simply run `python3 main.py` inside the `src` folder to launch the bot in the repo folder.
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
version: "2.1"
|
version: "2.1"
|
||||||
services:
|
services:
|
||||||
kassoubot:
|
kassoubot:
|
||||||
image: registry.gitlab.com/confreriedukassoulait/kassoubot
|
image: registry.gitlab.com/confreriedukassoulait/kassoubot:latest
|
||||||
container_name: KassouBot
|
container_name: KassouBot-Core
|
||||||
environment:
|
environment:
|
||||||
- TOKEN_DISCORD=yourTokenDiscord
|
- TOKEN_DISCORD=yourTokenDiscord
|
||||||
- TOKEN_GENIUS=yourTokenGenius
|
- TOKEN_GENIUS=yourTokenGenius
|
||||||
|
@ -13,4 +13,15 @@ services:
|
||||||
- PREFIX=yourPrefix
|
- PREFIX=yourPrefix
|
||||||
volumes:
|
volumes:
|
||||||
- /here/your/path/:/db
|
- /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
|
restart: unless-stopped
|
||||||
|
|
Reference in a new issue