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-06-03 14:26:51 +02:00
src implémentation de la db dans le reminder 2021-06-03 14:26:51 +02:00
.gitignore adding sqlite3 database 2021-06-03 08:07:53 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2021-03-28 01:47:31 +01:00
docker-compose.yml sync with readme 2021-06-03 08:47:47 +02:00
Dockerfile better docker health 2021-05-13 09:23:49 +02:00
LICENSE Create LICENSE 2021-03-28 01:46:26 +01:00
README.md adding sqlite in features 2021-06-03 12:20:29 +02:00
requirements.txt adding test cog for new slash commands 2021-05-28 14:03:34 +02:00

Bot developed with discord.py (rewrite) - FRENCH

Version Docker Stars Docker Pulls Github stars Github forks

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" \
    mylloon/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/:/src/db/

To find reddit tokens, go to this site and here are the instructions: instructions

redirection uri (for copy/paste) : http://localhost:8080

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

  • Everything is explained by doing the help command.
  • Using SQLite for the database

Launching locally

If you want to run it without Docker, I personally use direnv to store variables and have them only in the working folder. Simply run python3 src/main.py to launch the bot in the repo folder.