LouisDeLaTech is a discord bot manager for Lyon e-Sport
Project description
LouisDeLaTech is a discord bot manager for Lyon e-Sport
Requirements
- Python with Poetry
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": "",
"teeShirt": "",
"birthdate": ""
}
Hello asso
Custom fields
{
"name": "Pseudonyme",
"type": "TextInput",
},
{
"name": "Date de naissance",
"type": "Date",
},
{
"name": "Adresse postale",
"type": "TextInput",
},
{
"name": "Numéro de téléphone",
"type": "TextInput",
},
{
"name": "Nom d'utilisateur Discord",
"type": "TextInput",
},
{
"name": "Taille du tee-shirt",
"type": "ChoiceList",
},
{
"name": "Je m'engage à signer l'engagement de confidentialité : https://example.fr",
"type": "YesNo",
}
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
poetry install
poetry shell
Run ruff
poetry run ruff format --check .
poetry run ruff check .
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.4.4.tar.gz
(31.9 kB
view hashes)
Built Distribution
Close
Hashes for les_louisdelatech-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5717d10667d6b0a843609a02e60fa6c2a573ca39dc22cd087e9206861fa7bf |
|
MD5 | 2e32c02b111c80bdb1bf0b286a1b3eab |
|
BLAKE2b-256 | 7c6535910c70070a10c5f9c80578b009375757c2ffe21fbf1bd6e6bcc5d28692 |