Skip to main content

LouisDeLaTech is a discord bot manager for Lyon e-Sport

Project description

LouisDeLaTech is a discord bot manager for Lyon e-Sport

PyPI PyPI versions Python test Code Style

Setup

Discord

Create a discord bot and get the token

Google

You must create user custom attribute

"custom": {
 "pseudo": "",
 "discordId": "",
 "teeShirt": "",
 "birthdate": ""
}

HelloAsso

Documentation

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

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

Credits

Copyright © Lyon e-Sport, 2021

Contributor(s):

Project details


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.5.2.tar.gz (116.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

les_louisdelatech-0.5.2-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file les_louisdelatech-0.5.2.tar.gz.

File metadata

  • Download URL: les_louisdelatech-0.5.2.tar.gz
  • Upload date:
  • Size: 116.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for les_louisdelatech-0.5.2.tar.gz
Algorithm Hash digest
SHA256 f12bb88a180424e74894b0dac81ab4966a11d5c053b6ebdbab9fc288b25fa19d
MD5 3428177f62206ab07fca06ea6af5dc5d
BLAKE2b-256 eb20a75afd8827c416613ab415477e401001a3a26f90c9d12d95c184cbf18d3e

See more details on using hashes here.

Provenance

The following attestation bundles were made for les_louisdelatech-0.5.2.tar.gz:

Publisher: release.yml on lyon-esport/LouisDeLaTech

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file les_louisdelatech-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for les_louisdelatech-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c7d91051a3bcbf3c7a23a0ae8ebe2d448d0d007664bf6193cf80045c8b7dc7bb
MD5 e3a8baba8ab1234ad8aa9703a5631841
BLAKE2b-256 5df17d83943ffb784c723f139da78ebf431cf2ac3b713e03b8cbadcc96bdeb0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for les_louisdelatech-0.5.2-py3-none-any.whl:

Publisher: release.yml on lyon-esport/LouisDeLaTech

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page