@karinjs/adapter-qqbot 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/login.js +2 -2
- package/package.json +1 -1
package/dist/apps/login.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getDefaultConfig, n as config } from "../config-D1_LqrcJ.js";
|
|
1
|
+
import { i as getDefaultConfig, n as config, o as writeConfig } from "../config-D1_LqrcJ.js";
|
|
2
2
|
import karin, { segment } from "node-karin";
|
|
3
3
|
import qrcode from "qrcode";
|
|
4
4
|
import axios from "node-karin/axios";
|
|
@@ -148,7 +148,7 @@ const QQBotLogin = karin.command(/^#qqbot(登录|login)$/i, async (e) => {
|
|
|
148
148
|
});
|
|
149
149
|
e.reply(`[${ok.appId}] 扫码登录成功`, { reply: true });
|
|
150
150
|
}
|
|
151
|
-
return;
|
|
151
|
+
return writeConfig(list);
|
|
152
152
|
}
|
|
153
153
|
return await e.reply("二维码过期,请重新触发指令", { reply: true });
|
|
154
154
|
} finally {
|