ajout du code pour l'api REST et discord oauth. Refacto
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user