2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2025-01-22 22:11:22 +08:00

设置图鉴版本号

This commit is contained in:
leiyilu 2022-06-24 13:30:03 +08:00
parent b00a03eeca
commit e584b76f30

View File

@ -14,6 +14,7 @@ import {
updateRes,sysCfg,
updateMiaoPlugin
} from "./apps/admin.js";
import { currentVersion } from "./components/Changelog.js";
export {
updateRes,
updateMiaoPlugin,
@ -53,14 +54,14 @@ export {
rule
};
console.log(`图鉴初始化~`);
console.log(`图鉴插件${currentVersion}初始化~`);
setTimeout(async function () {
let msgStr = await redis.get("xiaoyao:restart-msg");
if (msgStr) {
let msg = JSON.parse(msgStr);
await common.relpyPrivate(msg.qq, msg.msg);
await redis.del("xiaoyao:restart-msg");
let msgs = [`当前版本: ${currentVersion}`, `您可使用 #版本 命令查看更新信息`];
let msgs = [`当前版本: ${currentVersion}`, `您可使用 #图鉴版本 命令查看更新信息`];
await common.relpyPrivate(msg.qq, msgs.join("\n"));
}
}, 1000);