fix:update info&bat script

This commit is contained in:
手瓜一十雪
2024-04-15 10:32:54 +08:00
parent 6fb170dee7
commit 7caf101952
4 changed files with 9 additions and 16 deletions

View File

@@ -24,11 +24,13 @@ checkVersion().then((remoteVersion: string) => {
for (const k of [0, 1, 2]) {
if (parseInt(remoteVersionList[k]) > parseInt(localVersionList[k])) {
console.log('检测到更新,请前往 https://github.com/NapNeko/NapCatQQ 下载 NapCatQQ V', remoteVersion);
return;
} else if (parseInt(remoteVersionList[k]) < parseInt(localVersionList[k])) {
break;
}
}
console.log('当前已是最新版本,版本:', localVersion);
return;
});
new NapCatOnebot11();
napCatCore.addLoginSuccessCallback(() => {