mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 04:07:23 +08:00
feat: 配置项目的热修改
This commit is contained in:
parent
a5f9247b32
commit
d20699ee0f
@ -1,7 +1,7 @@
|
||||
language.name=简体中文(轻雪版)
|
||||
|
||||
log.debug=调试中
|
||||
log.info=信息
|
||||
log.info=是信息
|
||||
log.warning=有问题
|
||||
log.error=出错辣
|
||||
log.success=成功啦
|
||||
|
1
main.py
1
main.py
@ -9,7 +9,6 @@ from liteyuki.utils.liteyuki_api import liteyuki_api
|
||||
init()
|
||||
|
||||
store_config: dict = common_db.first(StoredConfig(), default=StoredConfig()).config
|
||||
print("Stored config loaded.", store_config)
|
||||
|
||||
static_config = load_from_yaml("config.yml")
|
||||
store_config.update(static_config)
|
||||
|
Loading…
Reference in New Issue
Block a user