updated readme

This commit is contained in:
Anselme 2026-07-17 11:41:06 +02:00
parent 6c8a729f73
commit 45b6b52d10
2 changed files with 27 additions and 17 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*.pyc *.pyc
data data
__pycache__ __pycache__
venv

View File

@ -1,29 +1,38 @@
Pour ajouter ce bot à votre serveur discord : BOT Discord de l'authentique Père Fouras sur votre channel discord, avec plus de 300 de ses fameuses énigmes à vous poser.
https://discord.com/api/oauth2/authorize?client_id=1110208055171367014&permissions=274877975552&scope=bot
Merci à ChatGPT pour m'avoir aidé à porter mon vieux bot IRC en C++, en un bot discord en python Ce bot est une refonte totale d'un vieux bot IRC que j'avais développé en C++ en 2016 :
Lien du vieux bot IRC que j'avais codé en 2016 :
https://git.epicsparrow.com/Anselme/SparrowBot/src/branch/master/app/fourasmodule.cpp https://git.epicsparrow.com/Anselme/SparrowBot/src/branch/master/app/fourasmodule.cpp
# How to run the bot # Pour les utilisateurs
## Setup env var for the bot `/fouras` pour demander une énigme
`/indice` pour demander un indice sur l'énigme courante
- Create a `.env` file at the root of the project `/fouras_requete` pour demander une énigme précise
- Add the following content to the file: `/repete` pour que le père fouras répète l'énigme (pratique si vous avez la flemme de scroller quand il y a eu plein de messages)
- `DISCORD_TOKEN` : the token of the bot
- `GITEA_API_KEY` : the api key to interact with gitea # Pour les admins
- `GUILD_ID` : the id of the guild where the bot offer slash commands
## Comment ajouter le bot à un serveur
Un administrateur du serveur doit cliquer sur ce lien :
https://discord.com/api/oauth2/authorize?client_id=1110208055171367014&permissions=274877975552&scope=bot
# Pour les développeurs
## Setup python
```bash ```bash
python -m main python -m venv "venv"
source venv/bin/activate
pip install -r requirements.txt
``` ```
## Setup discord
Créer un bot et générer un TOKEN sur le portail développeurs :
https://discord.com/developers/applications
## EXPERIMENTAL GITEA API ## Setup l'environnement
Permission needed: Créer un fichier `.env` à la source du projet avec les entrées suivantes :
- repo: read - `DISCORD_TOKEN` : the token of the bot
- issues: read & write - `MAINTAINER_ID` : optional discord user id, if you want to receive the bug reports associated to your instance of the bot