koishi-plugin-mcdle 0.0.6 → 0.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/lib/index.d.ts +1 -0
- package/lib/index.js +8 -6
- package/package.json +51 -44
- package/readme.md +18 -8
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -14646,6 +14646,7 @@ var Config = import_koishi.Schema.object({
|
|
|
14646
14646
|
atReply: import_koishi.Schema.boolean().default(false).description("响应时@用户"),
|
|
14647
14647
|
quoteReply: import_koishi.Schema.boolean().default(true).description("响应时引用消息"),
|
|
14648
14648
|
isEnableMiddleware: import_koishi.Schema.boolean().default(false).description("启用中间件(无需指令直接猜测)"),
|
|
14649
|
+
addStatusTextAfterEmoji: import_koishi.Schema.boolean().default(true).description("在状态表情后添加文字说明"),
|
|
14649
14650
|
maxRank: import_koishi.Schema.number().default(10).min(0).description("排行榜最大显示人数"),
|
|
14650
14651
|
dailyPlayLimit: import_koishi.Schema.number().default(1).min(1).description("每日游玩次数上限"),
|
|
14651
14652
|
retractDelay: import_koishi.Schema.number().min(0).default(0).description(
|
|
@@ -15113,12 +15114,13 @@ ${itemChineseTitle.join(" ")}`
|
|
|
15113
15114
|
if (key === "wiki_image_url" || key === "chinese_title") continue;
|
|
15114
15115
|
const guiKey = `${key}_gui`;
|
|
15115
15116
|
const guiStatus = lastGuess[guiKey];
|
|
15116
|
-
|
|
15117
|
-
|
|
15118
|
-
|
|
15119
|
-
else if (guiStatus === "
|
|
15120
|
-
else if (guiStatus === "
|
|
15121
|
-
else if (guiStatus === "
|
|
15117
|
+
const addText = cfg.addStatusTextAfterEmoji;
|
|
15118
|
+
let statusEmoji = "❓" + (addText ? "(未知)" : "");
|
|
15119
|
+
if (guiStatus === "true") statusEmoji = "🟩" + (addText ? "(完全匹配)" : "");
|
|
15120
|
+
else if (guiStatus === "mixed") statusEmoji = "🟨" + (addText ? "(部分匹配)" : "");
|
|
15121
|
+
else if (guiStatus === "false") statusEmoji = "🟥" + (addText ? "(不匹配)" : "");
|
|
15122
|
+
else if (guiStatus === "false_up") statusEmoji = "🟥⬆️" + (addText ? "(答案更大)" : "");
|
|
15123
|
+
else if (guiStatus === "false_down") statusEmoji = "🟥⬇️" + (addText ? "(答案更小)" : "");
|
|
15122
15124
|
const displayKey = keyMap[key] || key;
|
|
15123
15125
|
let value = lastGuess[key];
|
|
15124
15126
|
if (Array.isArray(value)) {
|
package/package.json
CHANGED
|
@@ -1,44 +1,51 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "koishi-plugin-mcdle",
|
|
3
|
-
"description": "Koishi 的 Minecraft 猜词游戏插件。根据 Minecraft 物品、生物和方块的属性特征,猜测正确的名称。",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"main": "lib/index.js",
|
|
6
|
-
"typings": "lib/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib",
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"koishi": {
|
|
12
|
-
"service": {
|
|
13
|
-
"required": [
|
|
14
|
-
"database"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"license": "MIT OR Apache-2.0",
|
|
19
|
-
"author": "Nawyjx <3373167460@qq.com>",
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "koishi-plugin-mcdle",
|
|
3
|
+
"description": "Koishi 的 Minecraft 猜词游戏插件。根据 Minecraft 物品、生物和方块的属性特征,猜测正确的名称。",
|
|
4
|
+
"version": "0.0.7",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"typings": "lib/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"lib",
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"koishi": {
|
|
12
|
+
"service": {
|
|
13
|
+
"required": [
|
|
14
|
+
"database"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"license": "MIT OR Apache-2.0",
|
|
19
|
+
"author": "Nawyjx <3373167460@qq.com>",
|
|
20
|
+
"contributors": [
|
|
21
|
+
{
|
|
22
|
+
"name": "VincentZyu233",
|
|
23
|
+
"email": "1830540513zyu@gmail.com",
|
|
24
|
+
"url": "https://github.com/VincentZyu233"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"homepage": "https://www.npmjs.com/package/koishi-plugin-mcdle?activeTab=readme",
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/araea/koishi-plugin-mcdle.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"koishi",
|
|
34
|
+
"plugin",
|
|
35
|
+
"chatbot",
|
|
36
|
+
"mcdle",
|
|
37
|
+
"minecraft",
|
|
38
|
+
"game",
|
|
39
|
+
"guess",
|
|
40
|
+
"wordle",
|
|
41
|
+
"猜词",
|
|
42
|
+
"游戏",
|
|
43
|
+
"我的世界",
|
|
44
|
+
"物品",
|
|
45
|
+
"生物",
|
|
46
|
+
"方块"
|
|
47
|
+
],
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"koishi": "^4.18.9"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
koishi-plugin-mcdle
|
|
2
|
+
===================
|
|
2
3
|
|
|
3
|
-
[
|
|
4
|
-
[
|
|
4
|
+
[<img alt="github" src="https://img.shields.io/badge/github-araea/mcdle-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-mcdle)
|
|
5
|
+
[<img alt="npm" src="https://img.shields.io/npm/v/koishi-plugin-mcdle.svg?style=for-the-badge&color=fc8d62&logo=npm" height="20">](https://www.npmjs.com/package/koishi-plugin-mcdle)
|
|
5
6
|
|
|
6
7
|
Koishi 的 Minecraft 猜词游戏插件。根据 Minecraft 物品、生物和方块的属性特征,猜测正确的名称。
|
|
7
8
|
|
|
@@ -29,16 +30,25 @@ Koishi 的 Minecraft 猜词游戏插件。根据 Minecraft 物品、生物和方
|
|
|
29
30
|
* [Koishi](https://koishi.chat/)
|
|
30
31
|
* [MCDLE](https://www.mcdle.net/)
|
|
31
32
|
* [Minecraft Wiki](https://minecraft.wiki/w/Minecraft_Wiki)
|
|
32
|
-
* [@
|
|
33
|
+
* [@magisk317](https://github.com/magisk317)
|
|
33
34
|
|
|
34
35
|
## QQ 群
|
|
35
36
|
|
|
36
37
|
* 956758505
|
|
37
38
|
|
|
38
|
-
|
|
39
|
+
<br>
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
#### License
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
<sup>
|
|
44
|
+
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
|
|
45
|
+
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
|
|
46
|
+
</sup>
|
|
43
47
|
|
|
44
|
-
|
|
48
|
+
<br>
|
|
49
|
+
|
|
50
|
+
<sub>
|
|
51
|
+
Unless you explicitly state otherwise, any contribution intentionally submitted
|
|
52
|
+
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
|
|
53
|
+
be dual licensed as above, without any additional terms or conditions.
|
|
54
|
+
</sub>
|