diff --git a/README.md b/README.md index 83b1755..69ee1bf 100644 --- a/README.md +++ b/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: ``` +docker run -d \ + --name="Lavalink" \ + registry.gitlab.com/confreriedukassoulait/lavalink:latest \ + -p 2333:2333 \ + --network="default" \ + --restart=unless-stopped \ + && \ docker run -d \ --name="KassouBot" \ registry.gitlab.com/confreriedukassoulait/kassoubot \ @@ -18,7 +25,9 @@ docker run -d \ --TOKEN_REDDIT_USER_AGENT="yourRedditUserAgent" \ --TIMEZONE="yourTimezone" \ --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). @@ -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`. -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 `start.bat` if you are on Windows or `start.sh` if on Linux inside the `src` folder to launch the bot. diff --git a/docker-compose.yml b/docker-compose.yml index 9fa1346..97f6fb4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,13 +13,12 @@ services: - PREFIX=yourPrefix volumes: - /here/your/path/:/db - networks: # - - default # Remove theses four lines if you - depends_on: # don't want to use the music.py cog - - lavalink # + networks: + - default + depends_on: + - lavalink restart: unless-stopped - # Use this if you want to use the cog music.py, otherwise you can delete this part lavalink: image: registry.gitlab.com/confreriedukassoulait/lavalink:latest container_name: KassouBot-Lavalink