From 53a6cb2822d3c04ab74846e7b6618f186c63c770 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Wed, 26 Mar 2025 19:44:52 +0800 Subject: [PATCH] =?UTF-8?q?fix(bot):=20=E6=B7=BB=E5=8A=A0yuc=5Fwiki=5Fpath?= =?UTF-8?q?=E5=88=B0=E7=BC=93=E5=AD=98=E6=B8=85=E7=90=86=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 2cd7717..e3b1ed1 100644 --- a/bot.py +++ b/bot.py @@ -7,7 +7,7 @@ from nonebot import logger from nonebot.log import default_format from nonebot.adapters.qq import Adapter as QQAdapter from apscheduler.schedulers.background import BackgroundScheduler -from src.configs.path_config import log_path,temp_path,video_path +from src.configs.path_config import log_path,temp_path,video_path,yuc_wiki_path nonebot.init() driver = nonebot.get_driver() @@ -21,7 +21,7 @@ driver.on_shutdown(disconnect) def clean_temp_cache(): """定时清理缓存文件""" - path_list = [Path(temp_path), Path(video_path)] + path_list = [Path(temp_path), Path(video_path),Path(yuc_wiki_path)] print("开始清理文件") for folder_path in path_list: files = get_files_in_folder(folder_path)