From 598260895c4fa981716f11f31c6572a7743107e0 Mon Sep 17 00:00:00 2001 From: snowy Date: Thu, 9 May 2024 16:36:45 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20=E6=9B=B4=E6=96=B0=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/deployment/config.md | 2 +- liteyuki/liteyuki_main/dev_tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/deployment/config.md b/docs/deployment/config.md index 5e5ce53..1125e6e 100644 --- a/docs/deployment/config.md +++ b/docs/deployment/config.md @@ -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" diff --git a/liteyuki/liteyuki_main/dev_tools.py b/liteyuki/liteyuki_main/dev_tools.py index de9c058..fb46dc7 100644 --- a/liteyuki/liteyuki_main/dev_tools.py +++ b/liteyuki/liteyuki_main/dev_tools.py @@ -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...")