From 0a9c25d108b363b21c167ed7884764a15d234c74 Mon Sep 17 00:00:00 2001 From: grassblock Date: Thu, 31 Jul 2025 16:50:42 +0800 Subject: [PATCH] fix: config.py reading example file --- config.example.yaml | 4 +++- config.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.example.yaml b/config.example.yaml index 5e06e7b..6656db8 100644 --- a/config.example.yaml +++ b/config.example.yaml @@ -1,4 +1,6 @@ -admin: 616760897 +# 管理员对应的 Telegram 用户 ID +# 你可以通过 /info 命令获取你的用户 ID +admin: 123456789 # global features settings features: diff --git a/config.py b/config.py index cf91b60..98d46a8 100644 --- a/config.py +++ b/config.py @@ -4,7 +4,7 @@ from pathlib import Path class Config: - def __init__(self, config_path: str = "config.example.yaml"): + def __init__(self, config_path: str = "config.yaml"): self.config_path = Path(config_path) self.config_data = self._load_config()