ajout du code pour l'api REST et discord oauth. Refacto

This commit is contained in:
2026-03-16 21:42:25 +01:00
parent 5a6470511a
commit 54a8d5c40f
12 changed files with 324 additions and 48 deletions

View File

@@ -2,7 +2,7 @@ import json
from pathlib import Path
from typing import Any, Callable, NotRequired, TypedDict, cast
from utils import get_bundle_dir
from tools.utils import get_executable_dir
class ConfigData(TypedDict):
discord_user_id: NotRequired[str]
@@ -16,7 +16,7 @@ class ConfigField(TypedDict):
validator: Validator
normalizer: Normalizer
CONFIG_PATH = get_bundle_dir() / "config.json"
CONFIG_PATH = get_executable_dir() / "config.json"
DISCORD_USER_KEY = "discord_user_id"
VOLUME_KEY = "volume"