add env example

This commit is contained in:
Mylloon 2021-08-01 20:27:04 +02:00
parent d3c609f21b
commit e599ce9375
2 changed files with 8 additions and 1 deletions

7
.envexample Normal file
View file

@ -0,0 +1,7 @@
TOKEN_DISCORD=
TOKEN_GENIUS=
TOKEN_REDDIT_CLIENT_ID=
TOKEN_REDDIT_CLIENT_SECRET=
TOKEN_REDDIT_USER_AGENT=
TIMEZONE=
PREFIX=

View file

@ -39,6 +39,6 @@ To find Genius token, go to [this site](https://genius.com/api-clients), `login
- Using SQLite for the database. - Using SQLite for the database.
## __Launching locally__ ## __Launching locally__
If you want to run it without Docker, create an .env file to store variables in the root folder. If you want to run it without Docker, create an .env file to store variables in the root folder (there is an example [here](https://gitlab.com/ConfrerieDuKassoulait/KassouBot/-/blob/main/.envexample).
Install ffmpeg by doing `sudo apt install ffmpeg` and all the requirements by doing `python3 -m pip install -r requirements.txt` Install ffmpeg by doing `sudo apt install ffmpeg` and all the requirements by doing `python3 -m pip install -r requirements.txt`
Simply run `python3 main.py` inside the `src` folder to launch the bot in the repo folder. Simply run `python3 main.py` inside the `src` folder to launch the bot in the repo folder.