import json CONFIG_PATH = "bot_config.json" def load_config(path: str = CONFIG_PATH) -> dict: with open(path, "r", encoding="utf-8") as f: return json.load(f) config = load_config()