mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🪛 chore: 清除多余逻辑
This commit is contained in:
parent
e05996ef3a
commit
6220016ace
@ -110,11 +110,6 @@ import { textArrayToMakeForward, sendMusicCard } from "../utils/yunzai-util.js";
|
|||||||
|
|
||||||
|
|
||||||
export class tools extends plugin {
|
export class tools extends plugin {
|
||||||
/**
|
|
||||||
* 用于计数applemusic,达到一定数量清理文件
|
|
||||||
* @type {number}
|
|
||||||
*/
|
|
||||||
static #amCount = 0;
|
|
||||||
/**
|
/**
|
||||||
* 构造安全的命令
|
* 构造安全的命令
|
||||||
* @type {{existsPromptKey: string, existsTransKey: string}}
|
* @type {{existsPromptKey: string, existsTransKey: string}}
|
||||||
@ -2347,15 +2342,6 @@ export class tools extends plugin {
|
|||||||
await this.uploadGroupFile(e, `${musicPath}/${other}`);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user