fix: config.py reading example file
This commit is contained in:
parent
7a4d998261
commit
0a9c25d108
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
admin: 616760897
|
# 管理员对应的 Telegram 用户 ID
|
||||||
|
# 你可以通过 /info 命令获取你的用户 ID
|
||||||
|
admin: 123456789
|
||||||
|
|
||||||
# global features settings
|
# global features settings
|
||||||
features:
|
features:
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue