LouisDeLaTech is a discord bot manager for Lyon e-Sport
Project description
LouisDeLaTech is a discord bot manager for Lyon e-Sport
Requirements
- Python (check version in setup.py)
Setup
Discord
Create a discord bot and get the token
- Create a google project
- Create a google service account
- Enable Google workspace delegation
- Generate keys and download the file (used by the bot
-g
) - Add required scopes for the service account (see config.example for the list of scopes)
You must create user custom attribute
custom: {
pseudo: ""
discordId: ""
}
Install
pip install les_louisdelatech
Configure
Generate a secret_key to encrypt database secrets
>>> from cryptography.fernet import Fernet
>>> Fernet.generate_key()
Fill config.toml
with config.example
Run
python3 -m les_louisdelatech.main -c config.toml -g google.json
Dev
Install Poetry with version >= 1.2.0a1
poetry install
poetry shell
pre-commit install
Run pre-commit
pre-commit run --all-files
Licence
The code is under CeCILL license.
You can find all details here: https://cecill.info/licences/Licence_CeCILL_V2.1-en.html
Credits
Copyright © Lyon e-Sport, 2021
Contributor(s):
- Ortega Ludovic - ludovic.ortega@lyon-esport.fr
- Etienne "PoPs" G. - etienne.guilluy@lyon-esport.fr
- Pierre "DrumSlayer" Sarret - pierre.sarret@lyon-esport.fr
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
les-louisdelatech-0.1.0.tar.gz
(28.9 kB
view hashes)
Built Distribution
Close
Hashes for les_louisdelatech-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f2b3a32de0489c63be2674749d23b2476e6f3a48619bdfb0944d52c406946af |
|
MD5 | 5b180dedb91acdb0c0414c9472ad6c0a |
|
BLAKE2b-256 | ce096b866818f155fc9f9f5195fb0a918aeeff32e67597a953a70ddd3aa7a50c |