LouisDeLaTech is a discord bot manager for Lyon e-Sport
Project description
LouisDeLaTech is a discord bot manager for Lyon e-Sport
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": ""
}
HelloAsso
Custom fields (Actually hard-coded)
{
"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",
}
To use the commands, please provide the requested form slug.
For exemple, for form at helloasso.com/associations/masuperassociation/adhesions/adhesion-2024-2025/ , the slug is adhesion-2024-2025
Resulting in, for exemple, the following command : /ha_check_update form_slug:adhesion-2024-2025
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
Note: the bot sends provisioning/reset credentials by email (not Discord DM). Make sure your Google delegated scopes include Gmail send (see config.example).
Dev
Install uv
Install and setup dependencies with uv sync --all-extras
Run ruff
uv run ruff format .
uv 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
Changelog
See CHANGELOG.md for step-by-step updates.
Docs
docs/ARCHITECTURE.md: high-level overview of the codebasedocs/CONFIGURATION.md: config reference and required keys/scopes
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file les_louisdelatech-0.6.0.tar.gz.
File metadata
- Download URL: les_louisdelatech-0.6.0.tar.gz
- Upload date:
- Size: 125.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2182162749089bb232b58c6ef227bc63c8e973b0c19b9d0aed9a6df6ac551757
|
|
| MD5 |
3ca1f00f4455c9f54d609be9756f6b0a
|
|
| BLAKE2b-256 |
12b9300e10af5139ce1b35bff2748c7403f714a6a2038e2c86e61b6e95e8ff1b
|
Provenance
The following attestation bundles were made for les_louisdelatech-0.6.0.tar.gz:
Publisher:
release.yml on lyon-esport/LouisDeLaTech
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
les_louisdelatech-0.6.0.tar.gz -
Subject digest:
2182162749089bb232b58c6ef227bc63c8e973b0c19b9d0aed9a6df6ac551757 - Sigstore transparency entry: 931290632
- Sigstore integration time:
-
Permalink:
lyon-esport/LouisDeLaTech@89a7b769e7f1ca7428add0aeb4060b130f537ad7 -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/lyon-esport
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@89a7b769e7f1ca7428add0aeb4060b130f537ad7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file les_louisdelatech-0.6.0-py3-none-any.whl.
File metadata
- Download URL: les_louisdelatech-0.6.0-py3-none-any.whl
- Upload date:
- Size: 46.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4171aa69d4fc43031e6850442f9ed7eff7b18add58f4104c6cb11d38b0b17501
|
|
| MD5 |
6a592eec48230fff2b1cdd8d97ce5339
|
|
| BLAKE2b-256 |
9ccf92070d634a432315696fb52839e570085b87a1ec7a05f107e2976c332fcb
|
Provenance
The following attestation bundles were made for les_louisdelatech-0.6.0-py3-none-any.whl:
Publisher:
release.yml on lyon-esport/LouisDeLaTech
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
les_louisdelatech-0.6.0-py3-none-any.whl -
Subject digest:
4171aa69d4fc43031e6850442f9ed7eff7b18add58f4104c6cb11d38b0b17501 - Sigstore transparency entry: 931290671
- Sigstore integration time:
-
Permalink:
lyon-esport/LouisDeLaTech@89a7b769e7f1ca7428add0aeb4060b130f537ad7 -
Branch / Tag:
refs/tags/0.6.0 - Owner: https://github.com/lyon-esport
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@89a7b769e7f1ca7428add0aeb4060b130f537ad7 -
Trigger Event:
push
-
Statement type: