fix: config.py reading example file

This commit is contained in:
草师傅 2025-07-31 16:50:42 +08:00
parent 7a4d998261
commit 0a9c25d108
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,6 @@
admin: 616760897 # 管理员对应的 Telegram 用户 ID
# 你可以通过 /info 命令获取你的用户 ID
admin: 123456789
# global features settings # global features settings
features: features:

View file

@ -4,7 +4,7 @@ from pathlib import Path
class Config: 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_path = Path(config_path)
self.config_data = self._load_config() self.config_data = self._load_config()