koishi-plugin-chatluna-toolbox 0.0.9 → 0.0.10
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/lib/index.js +4 -6
- package/package.json +7 -8
package/lib/index.js
CHANGED
|
@@ -625,12 +625,10 @@ async function sendMsgEmoji(params) {
|
|
|
625
625
|
const numericMessageId = /^\d+$/.test(messageIdRaw) ? Number(messageIdRaw) : messageIdRaw;
|
|
626
626
|
const { error, internal } = ensureOneBotSession(session);
|
|
627
627
|
if (error) return error;
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
"
|
|
631
|
-
|
|
632
|
-
["setMsgEmojiLike"]
|
|
633
|
-
);
|
|
628
|
+
const requestPayload = protocol === "napcat" ? { message_id: numericMessageId, emoji_id: emojiIdRaw, set: true } : { message_id: numericMessageId, emoji_id: emojiIdRaw };
|
|
629
|
+
await callOneBotAPI(internal, "set_msg_emoji_like", requestPayload, [
|
|
630
|
+
"setMsgEmojiLike"
|
|
631
|
+
]);
|
|
634
632
|
const success = `Emoji ${emojiIdRaw} sent to message ${messageIdRaw}.`;
|
|
635
633
|
log?.("info", success);
|
|
636
634
|
return success;
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-chatluna-toolbox",
|
|
3
3
|
"description": "为 ChatLuna 提供更多原生工具、XML 工具与变量,仅支持 onebot 平台。",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.10",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
|
-
"
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib"
|
|
9
9
|
],
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/Sor85/koishi-plugins",
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
13
14
|
"url": "https://github.com/Sor85/koishi-plugins.git"
|
|
@@ -30,19 +31,17 @@
|
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
33
|
"@langchain/core": "^0.3.62",
|
|
33
|
-
"zod": "^3.
|
|
34
|
+
"zod": "^3.25.76"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^
|
|
37
|
-
"rimraf": "^5.0.5",
|
|
37
|
+
"@types/node": "^22.10.1",
|
|
38
38
|
"tsup": "^8.0.0",
|
|
39
|
-
"typescript": "^5.
|
|
40
|
-
"vitest": "^2.
|
|
39
|
+
"typescript": "^5.7.2",
|
|
40
|
+
"vitest": "^3.2.4"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsup",
|
|
44
44
|
"watch": "tsup --watch",
|
|
45
|
-
"clean": "rimraf lib",
|
|
46
45
|
"typecheck": "tsc --noEmit",
|
|
47
46
|
"test": "vitest run"
|
|
48
47
|
}
|