koishi-plugin-mcdle 0.1.0 → 0.1.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/LICENSE-APACHE ADDED
@@ -0,0 +1,178 @@
1
+ # Apache License
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or
97
+ Derivative Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute must
110
+ include a readable copy of the attribution notices contained
111
+ within such NOTICE file, excluding those notices that do not
112
+ pertain to any part of the Derivative Works, in at least one
113
+ of the following places: within a NOTICE text file distributed
114
+ as part of the Derivative Works; within the Source form or
115
+ documentation, if provided along with the Derivative Works; or,
116
+ within a display generated by the Derivative Works, if and
117
+ wherever such third-party notices normally appear. The contents
118
+ of the NOTICE file are for informational purposes only and
119
+ do not modify the License. You may add Your own attribution
120
+ notices within Derivative Works that You distribute, alongside
121
+ or as an addendum to the NOTICE text from the Work, provided
122
+ that such additional attribution notices cannot be construed
123
+ as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing the
143
+ origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
package/LICENSE-MIT ADDED
@@ -0,0 +1,25 @@
1
+ # MIT License
2
+
3
+ Permission is hereby granted, free of charge, to any
4
+ person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the
6
+ Software without restriction, including without
7
+ limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software
10
+ is furnished to do so, subject to the following
11
+ conditions:
12
+
13
+ The above copyright notice and this permission notice
14
+ shall be included in all copies or substantial portions
15
+ of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
+ DEALINGS IN THE SOFTWARE.
package/lib/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Context, Schema } from 'koishi';
2
2
  import { MobData, BlockData, ItemData } from './data';
3
3
  export declare const name = "mcdle";
4
- export declare const usage = "# MCDLE - \u6211\u7684\u4E16\u754C\u731C\u8C1C\u6E38\u620F\n\n\u7075\u611F\u6E90\u4E8E **Wordle** \u73A9\u6CD5\n\n## \u57FA\u672C\u73A9\u6CD5\n\n- **mcdle.\u731C [\u540D\u79F0]** - \u5F00\u59CB\u6E38\u620F\u6216\u8FDB\u884C\u731C\u6D4B\n- \u7CFB\u7EDF\u968F\u673A\u9009\u62E9**\u751F\u7269\u3001\u7269\u54C1\u6216\u65B9\u5757**\u4F5C\u4E3A\u7B54\u6848\n- \u901A\u8FC7**\u989C\u8272\u63D0\u793A**\u5224\u65AD\u63A5\u8FD1\u7A0B\u5EA6\uFF1A\n\n | \u7B26\u53F7 | \u542B\u4E49 |\n |------|------|\n | \uD83D\uDFE9 \u7EFF\u8272 | \u5B57\u6BB5\u5B8C\u5168\u5339\u914D |\n | \uD83D\uDFE8 \u9EC4\u8272 | \u90E8\u5206\u5339\u914D |\n | \uD83D\uDFE5 \u7EA2\u8272 | \u4E0D\u5339\u914D |\n | \uD83D\uDFE5\u2B06\uFE0F | \u7B54\u6848\u66F4\u5927 |\n | \uD83D\uDFE5\u2B07\uFE0F | \u7B54\u6848\u66F4\u5C0F |\n\n## \u56FE\u7247\n\n\u5B89\u88C5 `puppeteer` \u670D\u52A1\u540E\uFF0C\u68CB\u76D8\u3001\u5F00\u5C40\u3001\u63ED\u6653\u3001\u6392\u884C\u699C\u90FD\u4F1A\u6E32\u67D3\u6210\u50CF\u7D20\u98CE\u5361\u7247\uFF1B\n\u672A\u5B89\u88C5\u6216\u6E32\u67D3\u5931\u8D25\u65F6\u81EA\u52A8\u56DE\u9000\u4E3A\u7B49\u4EF7\u7684\u6587\u672C\uFF0C\u529F\u80FD\u4E0D\u53D7\u5F71\u54CD\u3002\n\n## QQ \u7FA4\n\n956758505";
4
+ export declare const usage = "## \u4F7F\u7528\n\n`mcdle.\u731C [\u540D\u79F0]` \u5F00\u5C40\u6216\u731C\u6D4B\u3002\u7CFB\u7EDF\u968F\u673A\u9009\u62E9\u751F\u7269\u3001\u7269\u54C1\u6216\u65B9\u5757\uFF0C\u6309\u5C5E\u6027\u989C\u8272\u63D0\u793A\u63A5\u8FD1\u7A0B\u5EA6\u3002\n\n## \u63D0\u793A\n\n| \u7B26\u53F7 | \u542B\u4E49 |\n| --- | --- |\n| \uD83D\uDFE9 | \u5B8C\u5168\u5339\u914D |\n| \uD83D\uDFE8 | \u90E8\u5206\u5339\u914D |\n| \uD83D\uDFE5 | \u4E0D\u5339\u914D |\n| \uD83D\uDFE5\u2B06\uFE0F / \uD83D\uDFE5\u2B07\uFE0F | \u7B54\u6848\u66F4\u5927 / \u66F4\u5C0F |\n\n## \u6307\u4EE4\n\n| \u6307\u4EE4 | \u8BF4\u660E |\n| --- | --- |\n| `mcdle` | \u67E5\u770B\u5E2E\u52A9 |\n| `mcdle.\u731C [\u540D\u79F0]` | \u5F00\u5C40\u6216\u731C\u6D4B |\n| `mcdle.\u5E2E\u52A9` | \u5B8C\u6574\u8BF4\u660E |\n| `mcdle.\u6392\u884C\u699C` | \u7FA4\u5185\u6218\u7EE9 |\n| `mcdle.\u8BCD\u5E93` | \u5168\u90E8\u8BCD\u6761 |";
5
5
  export declare const inject: {
6
6
  required: string[];
7
7
  optional: string[];
package/lib/index.js CHANGED
@@ -18,15 +18,15 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
20
  // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
23
  Config: () => Config,
24
24
  apply: () => apply,
25
25
  inject: () => inject,
26
26
  name: () => name,
27
27
  usage: () => usage
28
28
  });
29
- module.exports = __toCommonJS(src_exports);
29
+ module.exports = __toCommonJS(index_exports);
30
30
  var import_koishi = require("koishi");
31
31
 
32
32
  // src/data.ts
@@ -15572,32 +15572,28 @@ __name(rankCard, "rankCard");
15572
15572
 
15573
15573
  // src/index.ts
15574
15574
  var name = "mcdle";
15575
- var usage = `# MCDLE - 我的世界猜谜游戏
15575
+ var usage = `## 使用
15576
15576
 
15577
- 灵感源于 **Wordle** 玩法
15577
+ \`mcdle.猜 [名称]\` 开局或猜测。系统随机选择生物、物品或方块,按属性颜色提示接近程度。
15578
15578
 
15579
- ## 基本玩法
15579
+ ## 提示
15580
15580
 
15581
- - **mcdle.猜 [名称]** - 开始游戏或进行猜测
15582
- - 系统随机选择**生物、物品或方块**作为答案
15583
- - 通过**颜色提示**判断接近程度:
15581
+ | 符号 | 含义 |
15582
+ | --- | --- |
15583
+ | 🟩 | 完全匹配 |
15584
+ | 🟨 | 部分匹配 |
15585
+ | 🟥 | 不匹配 |
15586
+ | 🟥⬆️ / 🟥⬇️ | 答案更大 / 更小 |
15584
15587
 
15585
- | 符号 | 含义 |
15586
- |------|------|
15587
- | 🟩 绿色 | 字段完全匹配 |
15588
- | 🟨 黄色 | 部分匹配 |
15589
- | 🟥 红色 | 不匹配 |
15590
- | 🟥⬆️ | 答案更大 |
15591
- | 🟥⬇️ | 答案更小 |
15588
+ ## 指令
15592
15589
 
15593
- ## 图片
15594
-
15595
- 安装 \`puppeteer\` 服务后,棋盘、开局、揭晓、排行榜都会渲染成像素风卡片;
15596
- 未安装或渲染失败时自动回退为等价的文本,功能不受影响。
15597
-
15598
- ## QQ 群
15599
-
15600
- 956758505`;
15590
+ | 指令 | 说明 |
15591
+ | --- | --- |
15592
+ | \`mcdle\` | 查看帮助 |
15593
+ | \`mcdle.猜 [名称]\` | 开局或猜测 |
15594
+ | \`mcdle.帮助\` | 完整说明 |
15595
+ | \`mcdle.排行榜\` | 群内战绩 |
15596
+ | \`mcdle.词库\` | 全部词条 |`;
15601
15597
  var inject = { required: ["database"], optional: ["puppeteer"] };
15602
15598
  var Config = import_koishi.Schema.object({
15603
15599
  atReply: import_koishi.Schema.boolean().default(false).description("响应时@用户"),
@@ -15927,9 +15923,9 @@ ${words.join(" ")}`).join("\n\n")
15927
15923
  await sendMsg(
15928
15924
  session,
15929
15925
  textCard(
15930
- `今日 ${cfg.dailyPlayLimit} 局已经用完`,
15926
+ `⚠️ 今日 ${cfg.dailyPlayLimit} 局已经用完`,
15931
15927
  `跨零点后重置,还要等 ${untilReset(now)}。`,
15932
- "在那之前可以逛逛 mcdle.排行榜 或 mcdle.词库。"
15928
+ "在那之前可以查看 mcdle.排行榜 或 mcdle.词库。"
15933
15929
  )
15934
15930
  );
15935
15931
  return;
@@ -15972,7 +15968,7 @@ ${words.join(" ")}`).join("\n\n")
15972
15968
  );
15973
15969
  await sendMsg(
15974
15970
  session,
15975
- textCard("这一局的牌面已经无法还原", "已经把它收掉了,mcdle.猜 [名称] 可以重新开一局。")
15971
+ textCard("⚠️ 这一局的牌面已经无法还原", "已经把它收掉了。发送 mcdle.猜 [名称] 可以重新开一局。")
15976
15972
  );
15977
15973
  return;
15978
15974
  }
@@ -16007,7 +16003,7 @@ ${words.join(" ")}`).join("\n\n")
16007
16003
  await sendMsg(
16008
16004
  session,
16009
16005
  textCard(
16010
- `「${guess}」这一局已经猜过了`,
16006
+ `⚠️ 「${guess}」这一局已经猜过了`,
16011
16007
  `本局已猜 ${state.titles.length} 个:${state.titles.join(" › ")}`,
16012
16008
  "换一个还没试过的词条吧。"
16013
16009
  )
@@ -16020,7 +16016,7 @@ ${words.join(" ")}`).join("\n\n")
16020
16016
  await sendMsg(
16021
16017
  session,
16022
16018
  textCard(
16023
- `「${guess}」不在${modeName(mode)}词库里`,
16019
+ `⚠️ 「${guess}」不在${modeName(mode)}词库里`,
16024
16020
  near.length ? `是不是想猜:${near.join("、")}?` : null,
16025
16021
  `本局共有 ${MODES[mode].total} 个${modeName(mode)}候选,mcdle.词库 可以全部翻看。`
16026
16022
  )
@@ -16129,7 +16125,7 @@ ${words.join(" ")}`).join("\n\n")
16129
16125
  await sendCard(
16130
16126
  session,
16131
16127
  rankCard([], 0),
16132
- textCard("排行榜还空着", "用 mcdle.猜 开出第一局,这里的第一行就是你。")
16128
+ textCard("⚠️ 排行榜还空着", "用 mcdle.猜 开出第一局,这里的第一行就是你。")
16133
16129
  );
16134
16130
  return;
16135
16131
  }
@@ -16269,13 +16265,11 @@ ${words.join(" ")}`).join("\n\n")
16269
16265
  const timePassed = Date.now() - prevMessage.timestamp;
16270
16266
  const remainingDelay = cfg.retractDelay * 1e3 - timePassed;
16271
16267
  if (timePassed < 118e3) {
16272
- setTimeout(async () => {
16273
- try {
16274
- await session.bot.deleteMessage(session.channelId, prevMessage.id);
16275
- } catch (error) {
16276
- logger.warn(`Failed to retract message ${prevMessage.id}: ${error.message}`);
16277
- }
16278
- }, remainingDelay);
16268
+ ctx.setTimeout(() => {
16269
+ session.bot.deleteMessage(session.channelId, prevMessage.id).catch((error) => {
16270
+ logger.warn(`撤回消息 ${prevMessage.id} 失败:${error.message}`);
16271
+ });
16272
+ }, Math.max(0, remainingDelay));
16279
16273
  }
16280
16274
  }
16281
16275
  lastMessageInfo.set(session.channelId, { id: messageId, timestamp: Date.now() });
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "koishi-plugin-mcdle",
3
3
  "description": "Koishi 的 Minecraft 猜词游戏插件。根据 Minecraft 物品、生物和方块的属性特征,猜测正确的名称。",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
8
8
  "lib",
9
- "dist"
9
+ "LICENSE-APACHE",
10
+ "LICENSE-MIT"
10
11
  ],
11
12
  "koishi": {
12
13
  "service": {
@@ -49,7 +50,7 @@
49
50
  "方块"
50
51
  ],
51
52
  "peerDependencies": {
52
- "koishi": "^4.18.9",
53
+ "koishi": "^4.18.11",
53
54
  "koishi-plugin-puppeteer": "^3.9.0"
54
55
  },
55
56
  "peerDependenciesMeta": {
package/readme.md CHANGED
@@ -1,63 +1,37 @@
1
1
  koishi-plugin-mcdle
2
2
  ===================
3
3
 
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)
4
+ [<img alt="github" src="https://img.shields.io/badge/github-araea/koishi__plugin__mcdle-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-mcdle)
5
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)
6
6
 
7
- Koishi 的 Minecraft 猜词游戏插件。根据 Minecraft 物品、生物和方块的属性特征,猜测正确的名称。
7
+ Koishi 的 Minecraft 猜词游戏插件。
8
8
 
9
9
  ## 使用
10
10
 
11
- 1. 设置指令别名。
12
- 2. 发送 `mcdle` 查看帮助。
11
+ `mcdle.猜 [名称]` 开局或猜测。系统随机选择生物、物品或方块,按属性颜色提示接近程度。
13
12
 
14
- ## 基本玩法
15
-
16
- - **mcdle.猜 [名称]** - 开始游戏或进行猜测
17
- - 系统随机选择**生物、物品或方块**作为答案
18
- - 通过**颜色提示**判断接近程度:
13
+ ## 提示
19
14
 
20
15
  | 符号 | 含义 |
21
- |------|------|
22
- | 🟩 绿色 | 字段完全匹配 |
23
- | 🟨 黄色 | 部分匹配 |
24
- | 🟥 红色 | 不匹配 |
25
- | 🟥⬆️ | 答案更大 |
26
- | 🟥⬇️ | 答案更小 |
27
-
28
- 部分匹配的字段里,**被点亮的那几个标签**就是与答案重合的值 —— 图片中高亮显示,
29
- 文本中用 `【】` 括起。
16
+ | --- | --- |
17
+ | 🟩 | 完全匹配 |
18
+ | 🟨 | 部分匹配 |
19
+ | 🟥 | 不匹配 |
20
+ | 🟥⬆️ / 🟥⬇️ | 答案更大 / 更小 |
30
21
 
31
22
  ## 指令
32
23
 
33
24
  | 指令 | 说明 |
34
- |------|------|
35
- | `mcdle` | 游戏简介与快速上手 |
36
- | `mcdle.猜 [名称]` | 开始一局,或提交一次猜测 |
37
- | `mcdle.猜` | 局中直接使用,回看当前棋盘 |
38
- | `mcdle.帮助` | 完整玩法说明 |
25
+ | --- | --- |
26
+ | `mcdle` | 查看帮助 |
27
+ | `mcdle.猜 [名称]` | 开局或猜测 |
28
+ | `mcdle.帮助` | 完整说明 |
39
29
  | `mcdle.排行榜` | 群内战绩 |
40
- | `mcdle.词库` | 全部候选词条 |
41
-
42
- ## 图片
43
-
44
- 安装 [puppeteer](https://www.npmjs.com/package/koishi-plugin-puppeteer) 服务后,
45
- 棋盘、开局、揭晓与排行榜都会渲染成像素风卡片:内联 SVG 像素图标、我的世界式的
46
- 方块斜角,不依赖任何外部字体或图片资源。
47
-
48
- puppeteer 是**可选**依赖。未安装、渲染超时或截图失败时,都会自动回退到等价的
49
- 文本形态,玩法与信息量不受影响;配置项 `disableImages` 可以强制只用文本。
50
-
51
- ## 致谢
52
-
53
- * [Koishi](https://koishi.chat/)
54
- * [MCDLE](https://www.mcdle.net/)
55
- * [Minecraft Wiki](https://minecraft.wiki/w/Minecraft_Wiki)
56
- * [@magisk317](https://github.com/magisk317)
30
+ | `mcdle.词库` | 全部词条 |
57
31
 
58
32
  ## QQ 群
59
33
 
60
- * 956758505
34
+ 956758505
61
35
 
62
36
  <br>
63
37