1
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2025-03-10 15:45:22 +08:00

修复了重启成功无提示的bug

This commit is contained in:
leiyilu 2022-06-24 08:20:05 +08:00
parent 8e9b9e9c75
commit 6c5817acfe

View File

@ -54,14 +54,13 @@ export {
};
console.log(`图鉴初始化~`);
// setTimeout(async function () {
// let msgStr = await redis.get("miao:restart-msg");
// if (msgStr) {
// let msg = JSON.parse(msgStr);
// await common.relpyPrivate(msg.qq, msg.msg);
// await redis.del("miao:restart-msg");
// let msgs = [`当前版本: ${currentVersion}`, `您可使用 #版本 命令查看更新信息`];
// await common.relpyPrivate(msg.qq, msgs.join("\n"));
// }
// }, 1000);
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}`, `您可使用 #版本 命令查看更新信息`];
await common.relpyPrivate(msg.qq, msgs.join("\n"));
}
}, 1000);