feat: get config

This commit is contained in:
手瓜一十雪
2024-05-08 15:42:22 +08:00
parent 790c4f589d
commit 6f5a6f353f
6 changed files with 36 additions and 27 deletions

View File

@@ -42,9 +42,10 @@ checkVersion().then((remoteVersion: string) => {
logError('[NapCat] 检测更新失败');
});
new NapCatOnebot11();
napCatCore.onLoginSuccess(() => {
napCatCore.onLoginSuccess((uin, uid) => {
console.log('登录成功!');
DataRuntime.setQQLoginStatus(true);
DataRuntime.setQQLoginUin(uin.toString());
postLoginStatus();
});
const showQRCode = async (qrCodeData: { url: string, base64: string, buffer: Buffer }) => {