🔧 重构配置管理,添加配置文件支持,更新日志系统,优化守护进程,完善测试用例

This commit is contained in:
2025-04-29 02:51:37 +08:00
parent fec96e694d
commit 56996ef082
16 changed files with 323 additions and 139 deletions

View File

@ -1,5 +1,5 @@
from liteyukibot import Daemon
from liteyukibot import Daemon, config
if __name__ == "__main__":
daemon = Daemon()
daemon = Daemon(**config.load_from_yaml("config.yaml") or {})
daemon.run()