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": ""
}

Hello asso

Documentation

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 uv

Install and setup dependencies with uv sync

Run unit test

uv run pytest --cov

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

Uploaded Source

Built Distribution

les_louisdelatech-0.5.0-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: les_louisdelatech-0.5.0.tar.gz
  • Upload date:
  • Size: 108.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for les_louisdelatech-0.5.0.tar.gz
Algorithm Hash digest
SHA256 97850c13c83a266c9b1160ebfc7494f55f56ff95d52cfc298c5542660d0ebaae
MD5 7cfe156003e0641a3bb259663aa625bd
BLAKE2b-256 9edf11c40e3c1a06e1b288410a108873415ac19ff3b4856c8ec96c488c5012f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for les_louisdelatech-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb8854399d31995d4d30555ca6fc72d3e82bd1292e3bfd63a43a00ab59f0c751
MD5 61338ae7825499f8f1cabc4a51f4f2e6
BLAKE2b-256 7b7f58dc4709883330cc93be14941f1a8d235a787f5ab054a8e9b75425cd3fcf

See more details on using hashes here.

Supported by

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