From 6220016ace6db26f2555ca4f4b71d5d15dc7f303 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Fri, 22 Nov 2024 00:02:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9B=20chore:=20=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E5=A4=9A=E4=BD=99=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index fd6aae9..b55fefd 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -110,11 +110,6 @@ import { textArrayToMakeForward, sendMusicCard } from "../utils/yunzai-util.js"; export class tools extends plugin { - /** - * 用于计数applemusic,达到一定数量清理文件 - * @type {number} - */ - static #amCount = 0; /** * 构造安全的命令 * @type {{existsPromptKey: string, existsTransKey: string}} @@ -2347,15 +2342,6 @@ export class tools extends plugin { await this.uploadGroupFile(e, `${musicPath}/${other}`); } } - // 计数 - tools.#amCount += 1; - logger.info(`当前${freyrName}已经下载了:${tools.#amCount}次`); - // 定时清理 - if (tools.#amCount >= 5) { - await deleteFolderRecursive(currentWorkingDirectory + "/am"); - // 重置 - tools.#amCount = 0; - } return true; }