add stuff to README

This commit is contained in:
Lendemor 2024-05-12 14:40:30 +02:00
parent 1c14ad3218
commit 7618f309ba

View File

@ -5,3 +5,25 @@ Merci à ChatGPT pour m'avoir aidé à porter mon vieux bot IRC en C++, en un bo
Lien du vieux bot IRC que j'avais codé en 2016 :
https://git.epicsparrow.com/Anselme/sparrowbot/-/blob/master/app/fourasmodule.cpp
# How to run the bot
## Setup env var for the bot
- Create a `.env` file at the root of the project
- Add the following content to the file:
- `DISCORD_TOKEN` : the token of the bot
- `GITEA_API_KEY` : the api key to interact with gitea
- `GUILD_ID` : the id of the guild where the bot offer slash commands
```bash
python -m main
```
## GITEA API
Permission needed:
- repo: read
- issues: read & write