llonebot-dist 7.9.0 → 7.9.2
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/llbot.js
CHANGED
|
@@ -2145,7 +2145,6 @@ class PMHQBase {
|
|
|
2145
2145
|
onDisconnect(timeout2, callback) {
|
|
2146
2146
|
const id2 = randomUUID();
|
|
2147
2147
|
this.disconnectCallbacks.set(id2, { timeout: timeout2, callback, triggered: false });
|
|
2148
|
-
console.info(`[PMHQ] Registered disconnect callback ${id2} with timeout ${timeout2}ms`);
|
|
2149
2148
|
return id2;
|
|
2150
2149
|
}
|
|
2151
2150
|
offDisconnect(id2) {
|
|
@@ -2153,7 +2152,6 @@ class PMHQBase {
|
|
|
2153
2152
|
}
|
|
2154
2153
|
startDisconnectMonitoring() {
|
|
2155
2154
|
if (this.disconnectCheckTimer) return;
|
|
2156
|
-
console.info("[PMHQ] Starting disconnect monitoring");
|
|
2157
2155
|
this.disconnectCheckTimer = setInterval(() => {
|
|
2158
2156
|
const isConnected = this.get_is_connected();
|
|
2159
2157
|
if (isConnected) {
|
|
@@ -4123,9 +4121,10 @@ var Msg;
|
|
|
4123
4121
|
}),
|
|
4124
4122
|
info: ProtoField(3, {
|
|
4125
4123
|
code: ProtoField(1, "string"),
|
|
4124
|
+
reactionType: ProtoField(2, "uint32"),
|
|
4126
4125
|
count: ProtoField(3, "uint32"),
|
|
4127
4126
|
operatorUid: ProtoField(4, "string"),
|
|
4128
|
-
|
|
4127
|
+
actionType: ProtoField(5, "uint32")
|
|
4129
4128
|
})
|
|
4130
4129
|
})
|
|
4131
4130
|
})
|
|
@@ -7207,7 +7206,7 @@ class WebUITokenUtil {
|
|
|
7207
7206
|
}
|
|
7208
7207
|
const webuiTokenUtil = new WebUITokenUtil(path__default.join(DATA_DIR, "webui_token.txt"));
|
|
7209
7208
|
const logFileName = `llbot-${(/* @__PURE__ */ new Date()).toLocaleString("zh-CN")}.log`.replace(/\//g, "-").replace(/:/g, "-");
|
|
7210
|
-
const version$3 = "7.9.
|
|
7209
|
+
const version$3 = "7.9.2";
|
|
7211
7210
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
7212
7211
|
function getDefaultExportFromCjs(x) {
|
|
7213
7212
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -33991,7 +33990,7 @@ class OneBot11Adapter extends Service2 {
|
|
|
33991
33990
|
emoji_id: info.code,
|
|
33992
33991
|
count: 1
|
|
33993
33992
|
}],
|
|
33994
|
-
info.
|
|
33993
|
+
info.actionType === 1
|
|
33995
33994
|
);
|
|
33996
33995
|
this.dispatch(event);
|
|
33997
33996
|
}
|
|
@@ -35232,7 +35231,7 @@ class MessageEncoder2 {
|
|
|
35232
35231
|
}
|
|
35233
35232
|
} else if (type2 === "face") {
|
|
35234
35233
|
this.elements.push(SendElement.face(+attrs.id, +attrs.type));
|
|
35235
|
-
} else if (type2 === "
|
|
35234
|
+
} else if (type2 === "llonebot:market-face") {
|
|
35236
35235
|
this.elements.push(SendElement.mface(
|
|
35237
35236
|
+attrs.emojiPackageId,
|
|
35238
35237
|
attrs.emojiId,
|
|
@@ -35889,7 +35888,7 @@ class SatoriAdapter extends Service2 {
|
|
|
35889
35888
|
if (msgType === 732 && subType === 16) {
|
|
35890
35889
|
const notify = Msg.NotifyMessageBody.decode(pushMsg.message.body.msgContent.subarray(7));
|
|
35891
35890
|
if (notify.field13 === 35) {
|
|
35892
|
-
if (notify.reaction.data.body.info.
|
|
35891
|
+
if (notify.reaction.data.body.info.actionType === 1) {
|
|
35893
35892
|
const event = await parseReactionAdded(this, notify, msgTime).catch((e) => this.ctx.logger.error(e));
|
|
35894
35893
|
if (event) {
|
|
35895
35894
|
this.server.dispatch(event);
|
|
@@ -50339,6 +50338,7 @@ const GroupMessageReactionEvent = object({
|
|
|
50339
50338
|
user_id: ZUin.describe("发送回应者 QQ 号"),
|
|
50340
50339
|
message_seq: ZInt64.describe("消息序列号"),
|
|
50341
50340
|
face_id: ZString.describe("表情 ID"),
|
|
50341
|
+
reaction_type: _enum(["face", "emoji"]).describe("收到的回应类型"),
|
|
50342
50342
|
is_add: ZBoolean.describe("是否为添加,`false` 表示取消回应")
|
|
50343
50343
|
});
|
|
50344
50344
|
const GroupMuteEvent = object({
|
|
@@ -50489,7 +50489,7 @@ discriminatedUnion("event_type", [
|
|
|
50489
50489
|
data: GroupFileUploadEvent
|
|
50490
50490
|
}).describe("群文件上传事件")
|
|
50491
50491
|
]).describe("事件");
|
|
50492
|
-
var version$1 = "1.2.0-rc.
|
|
50492
|
+
var version$1 = "1.2.0-rc.2";
|
|
50493
50493
|
const milkyPackageVersion = version$1;
|
|
50494
50494
|
const milkyVersion = milkyPackageVersion.split(".").slice(0, 2).join(".");
|
|
50495
50495
|
const CachedApiBase = object({ no_cache: ZBooleanWithDefault(false).describe("是否强制不使用缓存") });
|
|
@@ -55049,7 +55049,11 @@ async function transformOlpushEvent(ctx, data) {
|
|
|
55049
55049
|
user_id: userId,
|
|
55050
55050
|
message_seq: target.sequence,
|
|
55051
55051
|
face_id: info.code,
|
|
55052
|
-
|
|
55052
|
+
reaction_type: {
|
|
55053
|
+
1: "face",
|
|
55054
|
+
2: "emoji"
|
|
55055
|
+
}[info.reactionType],
|
|
55056
|
+
is_add: info.actionType === 1
|
|
55053
55057
|
}
|
|
55054
55058
|
};
|
|
55055
55059
|
}
|
|
@@ -84192,7 +84196,6 @@ class EmailConfigManager {
|
|
|
84192
84196
|
}
|
|
84193
84197
|
const content = await readFile(this.configPath, "utf-8");
|
|
84194
84198
|
this.config = JSON.parse(content);
|
|
84195
|
-
this.logger?.info("[EmailConfig] Configuration loaded successfully");
|
|
84196
84199
|
return this.config;
|
|
84197
84200
|
} catch (error2) {
|
|
84198
84201
|
this.logger?.error("[EmailConfig] Failed to load configuration:", error2);
|