summaryrefslogtreecommitdiff
path: root/ATRI/plugins/setu/modules/scheduler.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2021-07-08 22:09:00 +0800
committerKyomotoi <[email protected]>2021-07-08 22:09:00 +0800
commitbe2747e4d4b820ca0f1f988d3b77a628da26fe7b (patch)
treee1a59dd79ecd973a7d704568dcdc018f1f1b651a /ATRI/plugins/setu/modules/scheduler.py
parenta4e1b9d1581d756ef79ad063d1c0bd6b2fd13c1d (diff)
downloadATRI-be2747e4d4b820ca0f1f988d3b77a628da26fe7b.tar.gz
ATRI-be2747e4d4b820ca0f1f988d3b77a628da26fe7b.tar.bz2
ATRI-be2747e4d4b820ca0f1f988d3b77a628da26fe7b.zip
🔖♻️🐛🔧🔥📝 更新版本:YHN-001-A03
🔖 更新版本至:YHN-001-A03 ✨ 新增插件: - 涩图 - 闲聊(文爱 ♻️ 重构: - Service - 所有插件 🐛 修复部分小bug 🔧 暂时移除部分设置 🔥 删除: - 插件:nsfw、wife。日后加回 - 插件 essential 中部分内容 📝 更新README
Diffstat (limited to 'ATRI/plugins/setu/modules/scheduler.py')
-rw-r--r--ATRI/plugins/setu/modules/scheduler.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/ATRI/plugins/setu/modules/scheduler.py b/ATRI/plugins/setu/modules/scheduler.py
deleted file mode 100644
index e66c398..0000000
--- a/ATRI/plugins/setu/modules/scheduler.py
+++ /dev/null
@@ -1,15 +0,0 @@
-import shutil
-from ATRI.log import logger as log
-from ATRI.utils.apscheduler import scheduler
-
-from .data_source import TEMP_DIR
-
-
[email protected]_job("interval", days=7, misfire_grace_time=10)
-async def clear_temp():
- log.info("正在清除涩图缓存")
- try:
- shutil.rmtree(TEMP_DIR)
- log.info("清除缓存成功!")
- except Exception:
- log.warn("清除图片缓存失败!")