📝 更新调试模式配置

This commit is contained in:
snowy 2024-05-09 16:36:45 +08:00
parent e02dfdf5d6
commit 598260895c
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ log_level: "INFO" # 日志等级
log_icon: true # 是否显示日志等级图标(某些控制台字体不可用)
auto_report: true # 是否自动上报问题给轻雪服务器
auto_update: true # 是否自动更新轻雪每天4点检查更新
liteyuki_reload: false # 轻雪内置的重载选项,开启后在调试时修改代码或资源会自动重载相应内容
debug: false # 轻雪调试,开启后在调试时修改代码或资源会自动重载相应内容
safe_mode: false # 安全模式,开启后将不会加载任何第三方插件
# 其他Nonebot插件的配置项
custom_config_1: "custom_value1"

View File

@ -8,7 +8,7 @@ from liteyuki.utils.base.config import get_config
from liteyuki.utils.base.reloader import Reloader
from liteyuki.utils.base.resource import load_resources
if get_config("liteyuki_reload", False):
if get_config("debug", False):
nonebot.logger.info("Liteyuki Reload is enable, watching for file changes...")