using new lavalink server
This commit is contained in:
parent
9342a3040f
commit
3f260a8ead
2 changed files with 15 additions and 9 deletions
15
README.md
15
README.md
|
@ -8,6 +8,13 @@ You have to replace `TOKEN_DISCORD`, `PREFIX`, `TOKEN_GENIUS`, `TOKEN_REDDIT_CLI
|
||||||
|
|
||||||
With a [docker-compose](https://gitlab.com/ConfrerieDuKassoulait/KassouBot/-/blob/main/docker-compose.yml) or in command line:
|
With a [docker-compose](https://gitlab.com/ConfrerieDuKassoulait/KassouBot/-/blob/main/docker-compose.yml) or in command line:
|
||||||
```
|
```
|
||||||
|
docker run -d \
|
||||||
|
--name="Lavalink" \
|
||||||
|
registry.gitlab.com/confreriedukassoulait/lavalink:latest \
|
||||||
|
-p 2333:2333 \
|
||||||
|
--network="default" \
|
||||||
|
--restart=unless-stopped \
|
||||||
|
&& \
|
||||||
docker run -d \
|
docker run -d \
|
||||||
--name="KassouBot" \
|
--name="KassouBot" \
|
||||||
registry.gitlab.com/confreriedukassoulait/kassoubot \
|
registry.gitlab.com/confreriedukassoulait/kassoubot \
|
||||||
|
@ -18,7 +25,9 @@ docker run -d \
|
||||||
--TOKEN_REDDIT_USER_AGENT="yourRedditUserAgent" \
|
--TOKEN_REDDIT_USER_AGENT="yourRedditUserAgent" \
|
||||||
--TIMEZONE="yourTimezone" \
|
--TIMEZONE="yourTimezone" \
|
||||||
--PREFIX="yourPrefix" \
|
--PREFIX="yourPrefix" \
|
||||||
-v /here/your/path/:/db
|
-v /here/your/path/:/db \
|
||||||
|
--network="default" \
|
||||||
|
--restart=unless-stopped
|
||||||
```
|
```
|
||||||
|
|
||||||
You can add the environment variable `DEACTIVATE` to disable some cogs (separate the cogs with commas and no spaces between).
|
You can add the environment variable `DEACTIVATE` to disable some cogs (separate the cogs with commas and no spaces between).
|
||||||
|
@ -49,6 +58,4 @@ If you want to run it without Docker, create an .env file to store variables in
|
||||||
|
|
||||||
Install 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 latest version of [Lavalink](https://github.com/freyacodes/Lavalink/releases/latest) inside the `Lavalink` folder.
|
Simply run `start.bat` if you are on Windows or `start.sh` if on Linux inside the `src` folder to launch the bot.
|
||||||
|
|
||||||
Simply run `python3 main.py` inside the `src` folder to launch the bot in the repo folder.
|
|
||||||
|
|
|
@ -13,13 +13,12 @@ services:
|
||||||
- PREFIX=yourPrefix
|
- PREFIX=yourPrefix
|
||||||
volumes:
|
volumes:
|
||||||
- /here/your/path/:/db
|
- /here/your/path/:/db
|
||||||
networks: #
|
networks:
|
||||||
- default # Remove theses four lines if you
|
- default
|
||||||
depends_on: # don't want to use the music.py cog
|
depends_on:
|
||||||
- lavalink #
|
- lavalink
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# Use this if you want to use the cog music.py, otherwise you can delete this part
|
|
||||||
lavalink:
|
lavalink:
|
||||||
image: registry.gitlab.com/confreriedukassoulait/lavalink:latest
|
image: registry.gitlab.com/confreriedukassoulait/lavalink:latest
|
||||||
container_name: KassouBot-Lavalink
|
container_name: KassouBot-Lavalink
|
||||||
|
|
Reference in a new issue