Fix système arriver départ V1
This commit is contained in:
parent
01dd4979d8
commit
d9afa32828
18 changed files with 1367 additions and 291 deletions
|
|
@ -13,8 +13,14 @@ from typing import Optional, Dict, Any
|
|||
PARIS_TZ = ZoneInfo("Europe/Paris")
|
||||
DATE_FORMAT = "%d/%m/%Y %H:%M"
|
||||
|
||||
ABSENCE_SETTINGS_FILE = "data/absence_settings.json"
|
||||
ABSENCE_DATA_FILE = "data/absences.json"
|
||||
# Chemins ABSOLUS
|
||||
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
DATA_DIR = os.path.join(BASE_DIR, "..", "data")
|
||||
ABSENCE_SETTINGS_FILE = os.path.join(DATA_DIR, "absence_settings.json")
|
||||
ABSENCE_DATA_FILE = os.path.join(DATA_DIR, "absences.json")
|
||||
|
||||
# Créer le dossier data/ s'il n'existe pas
|
||||
os.makedirs(DATA_DIR, exist_ok=True)
|
||||
file_lock = asyncio.Lock()
|
||||
|
||||
def load_settings(guild_id: int) -> dict:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue