Bot in french developed with discord.py (rewrite)
This repository has been archived on 2022-06-13. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2021-08-07 02:29:13 +02:00
.gitlab/issue_templates Adding some help to fill the fields 2021-08-02 11:18:44 +02:00
src await 2021-08-07 01:36:05 +02:00
.envexample add env example 2021-08-01 20:27:04 +02:00
.gitignore re-add logs 2021-08-07 01:00:01 +02:00
.gitlab-ci.yml push as dev-wavelink 2021-08-06 15:53:49 +02:00
docker-compose.yml using new docker image 2021-07-28 01:19:13 +02:00
Dockerfile bump to 3.8.11 2021-08-07 02:29:13 +02:00
LICENSE Create LICENSE 2021-03-28 01:46:26 +01:00
README.md Using REGION_DISCORD variable for voice region 2021-08-06 16:24:37 +02:00
requirements.txt adding wavelink 2021-08-06 13:49:44 +02:00

Bot Discord

Version Build

Setting up

You have to replace TOKEN_DISCORD, PREFIX, TOKEN_GENIUS, TOKEN_REDDIT_CLIENT_ID, TOKEN_REDDIT_CLIENT_SECRET, TOKEN_REDDIT_USER_AGENT and TIMEZONE with your desired values. You must also specify a path to the folder where the database will be.

With a docker-compose or in command line:

docker run -d \
    --name="KassouBot" \
    registry.gitlab.com/confreriedukassoulait/kassoubot \
    --TOKEN_DISCORD="yourTokenDiscord" \
    --TOKEN_GENIUS="yourTokenGenius" \
    --TOKEN_REDDIT_CLIENT_ID="yourRedditClientID" \
    --TOKEN_REDDIT_CLIENT_SECRET="yourRedditClientSecret" \
    --TOKEN_REDDIT_USER_AGENT="yourRedditUserAgent" \
    --TIMEZONE="yourTimezone" \
    --PREFIX="yourPrefix" \
    -v /here/your/path/:/db

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 REGION_DISCORD to force the Lavalink server to use your voice region.

To find reddit tokens, go to this site and here are the instructions: instructions redirection uri (for copy/paste) : http://localhost:8080

To find Genius token, go to this site, login to your account and on the left select New API Client. Fill the field with what you want then click Save. Now your token is the CLIENT ACCESS TOKEN.

Add the bot to your server

  • In the Discord Dev Portal create an application, and make sure it's a Bot (third tab).
  • To invite it, go to the OAuth2 (second tab) tab, select the scopes bot (required) and applications.commands (for the slashs commands) and in the bot permissions select Administrator (You can select manually at your own risk).
  • You have the link to copy above between the two blocks scopes and permissions.
  • If you need help, you can join my Discord.

Features

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).

Install ffmpeg by doing sudo apt install ffmpeg and 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.

Simply run python3 main.py inside the src folder to launch the bot in the repo folder.