koishi-plugin-wordle-game 2.5.8 → 2.6.0
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 -1
- package/lib/index.js +26 -50
- package/package.json +4 -4
- package/readme.md +40 -187
package/lib/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export declare const inject: {
|
|
|
4
4
|
optional: string[];
|
|
5
5
|
};
|
|
6
6
|
export declare const name = "wordle-game";
|
|
7
|
-
export declare const usage = "## \
|
|
7
|
+
export declare const usage = "## \u4F7F\u7528\n\n1. \u542F\u7528 `monetary`\uFF0C`database` \u548C `puppeteer` \u670D\u52A1\u3002\n2. \u8BBE\u7F6E\u6307\u4EE4\u522B\u540D\u3002\n3. \u8F93\u5165 `wordleGame.\u5F00\u59CB` \u6307\u4EE4\u5F15\u5BFC\u6E38\u620F\u6A21\u5F0F\u3002\n4. \u8F93\u5165\u731C\u6D4B\u8BCD\u3002\n\n## \u6CE8\u610F\u4E8B\u9879\n\n- \u8F93\u5165\u6210\u8BED\u51FA\u73B0\u672A\u77E5\u9519\u8BEF\u65F6\uFF0C\u53EF\u524D\u5F80 `data/wordleGame/idioms.json` \u6587\u4EF6\u4E2D\u641C\u7D22\u8BE5\u6210\u8BED\uFF0C\u67E5\u770B\u662F\u5426\u5B58\u5728\u62FC\u97F3\u7684\u9519\u8BEF\u3002\n\n## \u7279\u6027\n\n- \u8BCD\u5F71\u6709\u7EC6\u5206\u6A21\u5F0F\u7684\u6392\u884C\u699C\uFF0C\u53EF\u81EA\u884C\u4F7F\u7528 `help` \u63A2\u7D22\u3002\n- \u53EF\u81EA\u884C\u5728 `idioms.json` \u4E2D\u6DFB\u52A0\u6210\u8BED\uFF0C\u4F8B\u5982\u201C\u539F\u795E\u542F\u52A8\u201D\uFF0C\u6CE8\u610F\u683C\u5F0F\u5373\u53EF\uFF08\u6CE8\u610F\uFF1AJSON \u683C\u5F0F\u6700\u540E\u4E00\u9879\u4E0D\u9700\u8981\u9017\u53F7\uFF09\u3002\n\n## \u5173\u952E\u6307\u4EE4\n\n- `wordleGame.\u5F00\u59CB [\u5F85\u731C\u8BCD\u7684\u957F\u5EA6]`\n - \u5F00\u59CB\u6E38\u620F\u5F15\u5BFC\u3002\n\n- `wordleGame.\u5F00\u59CB.\u7ECF\u5178/CET4/6/GMAT/GRE/IELTS/SAT/TOEFL/\u8003\u7814/\u4E13\u516B/\u4E13\u56DB/ALL/Lewdle/Numberle/Math/\u6C49\u515C/\u8BCD\u5F71 [\u5F85\u731C\u8BCD\u7684\u957F\u5EA6]`\n - \u7ECF\u5178\u6A21\u5F0F\u548C\u6C49\u515C\u6A21\u5F0F\uFF0C\u8F93\u52A0\u5165\u6307\u4EE4\u53EF\u6295\u5165\u8D27\u5E01\uFF0C\u8D62\u4E86\u6709\u5956\u52B1\u3002\n - `--hard`\n - \u56F0\u96BE\u6A21\u5F0F\uFF0C\u7EFF\u8272\u7EBF\u7D22\u5FC5\u987B\u4FDD\u7279\u56FA\u5B9A\uFF0C\u9EC4\u8272\u7EBF\u7D22\u5FC5\u987B\u91CD\u590D\u4F7F\u7528\u3002\u5728\u8BCD\u5F71\u6A21\u5F0F\u4E0B\uFF0C\u5C06\u63D0\u9AD8\u5339\u914D\u96BE\u5EA6\u3002\n - `--uhard`\n - \u8D85\u56F0\u96BE\u6A21\u5F0F\uFF0C\u5728\u56F0\u96BE\u6A21\u5F0F\u7684\u57FA\u7840\u4E0A\uFF0C\u9EC4\u8272\u7EBF\u7D22\u5FC5\u987B\u8FDC\u79BB\u5B83\u4EEC\u88AB\u7EBF\u7D22\u7684\u5730\u65B9\uFF0C\u7070\u8272\u7684\u7EBF\u7D22\u5FC5\u987B\u88AB\u9075\u5B88\u3002\n - `--absurd`\n - \u5728\u8FD9\u79CD\u6A21\u5F0F\u4E0B\uFF0C\u4F60\u5C06\u9762\u5BF9\u4E00\u4E2A\u6781\u5177\u6311\u6218\u6027\u7684\u5BF9\u624B\u3002\n - \u8352\u8C2C/\u53D8\u6001\u6A21\u5F0F\uFF0CAI \u5C06\u5C3D\u91CF\u907F\u514D\u7ED9\u51FA\u7B54\u6848\u3002\n - \u6BCF\u6B21\u731C\u6D4B\u65F6\u90FD\u4F1A\u5C3D\u53EF\u80FD\u5C11\u5730\u900F\u9732\u4FE1\u606F\uFF0C\u751A\u81F3\u53EF\u80FD\u66F4\u6362\u79D8\u5BC6\u8BCD\u3002\n - [\u5982\u4F55\u73A9\uFF1F](https://qntm.org/absurdle)\n - `--challenge`\n - \u4EC5\u5EFA\u8BAE\u9AD8\u7EA7\u73A9\u5BB6\u5C1D\u8BD5\u3002\n - \u8352\u8C2C/\u53D8\u6001\u6311\u6218\u6A21\u5F0F\uFF0C\u8981\u6C42\u4F60\u4ECE\u4E00\u4E2A\u7ED9\u5B9A\u7684\u76EE\u6807\u8BCD\u51FA\u53D1\uFF0C\u901A\u8FC7\u67D0\u79CD\u65B9\u5F0F\u4F7F\u5176\u53D8\u6210\u79D8\u5BC6\u8BCD\u3002\n - [\u5982\u4F55\u73A9\uFF1F](https://qntm.org/challenge)\n - `--wordles <\u591A\u5F00\u7684\u6570\u91CF>`\n - \u540C\u65F6\u731C\u6D4B\u591A\u4E2A\uFF0C\u9ED8\u8BA4\u8303\u56F4\u4E3A 1 ~ 4\u3002\u53EF\u81EA\u884C\u914D\u7F6E\u3002\n - `--free`\n - \u6C49\u515C&\u8BCD\u5F71\u7684\u81EA\u7531\u6A21\u5F0F\uFF0C\u4EFB\u610F\u56DB\u5B57\u8BCD\u8BED\u90FD\u53EF\u4F5C\u4E3A\u731C\u6D4B\u8BCD\u3002\n - `--all`\n - \u6C49\u515C&\u8BCD\u5F71\u7684\u5168\u6210\u8BED\u6A21\u5F0F\u3002\u5F00\u542F\u65F6\uFF0C\u8BCD\u8BED\u6570\u91CF\u4E3A 29766+ \u4E2A\uFF08\u542B\u751F\u50FB\u5B57\uFF0C\u6781\u96BE\uFF09\uFF1B\u5173\u95ED\u65F6\uFF0C\u4E3A 7208 \u4E2A\u5E38\u7528\u6210\u8BED\uFF08\u4E49\u52A1\u6559\u80B2\uFF09\u3002\n - \u53EF\u540C\u65F6\u542F\u7528\u56F0\u96BE\u6A21\u5F0F\u548C\u53D8\u6001\u6A21\u5F0F\u3002\n\n- `wordleGame.\u731C [inputWord:text]` - \u731C\u5355\u8BCD|\u6210\u8BED|...\uFF0C\u53C2\u6570\u4E3A\u8F93\u5165\u7684\u8BCD\u3002\n - `-r`\n - \u968F\u673A\u731C\u6D4B\u4E00\u6B21\u3002\n\n## QQ \u7FA4\n\n- 956758505\n";
|
|
8
8
|
export interface Config {
|
|
9
9
|
isDarkThemeEnabled: boolean;
|
|
10
10
|
isHighContrastThemeEnabled: boolean;
|
package/lib/index.js
CHANGED
|
@@ -1338,80 +1338,55 @@ var inject = {
|
|
|
1338
1338
|
optional: ["markdownToImage"]
|
|
1339
1339
|
};
|
|
1340
1340
|
var name = "wordle-game";
|
|
1341
|
-
var usage = `##
|
|
1341
|
+
var usage = `## 使用
|
|
1342
1342
|
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
- 如果使用过程中出现成语的未知错误,可以前往 \`data/wordleGame/idioms.json\` 文件中搜索该成语,查看是否存在拼音的错误。
|
|
1348
|
-
- 当然你也可以直接删除这个 \`idioms.json\` 文件,然后重新启动机器人,这样会重新生成一个可能已经修复问题的新的 \`idioms.json\` 文件。
|
|
1349
|
-
- 这个文件里可以添加自定义的成语 0.0,例如:如果你想加 “原神启动” 也是可以的,注意格式即可(提醒:最后一个元素后面不要加逗号,因为不符合
|
|
1350
|
-
JSON 格式)。
|
|
1351
|
-
- 遇到解决不了的问题,也可以想办法联系我,我很乐意帮助你!希望你玩的开心~😊
|
|
1343
|
+
1. 启用 \`monetary\`,\`database\` 和 \`puppeteer\` 服务。
|
|
1344
|
+
2. 设置指令别名。
|
|
1345
|
+
3. 输入 \`wordleGame.开始\` 指令引导游戏模式。
|
|
1346
|
+
4. 输入猜测词。
|
|
1352
1347
|
|
|
1353
|
-
##
|
|
1348
|
+
## 注意事项
|
|
1354
1349
|
|
|
1355
|
-
|
|
1350
|
+
- 输入成语出现未知错误时,可前往 \`data/wordleGame/idioms.json\` 文件中搜索该成语,查看是否存在拼音的错误。
|
|
1356
1351
|
|
|
1357
|
-
|
|
1352
|
+
## 特性
|
|
1358
1353
|
|
|
1359
|
-
- \`
|
|
1360
|
-
- \`
|
|
1361
|
-
- \`wordleGame.加入 [money:number]\` - 加入游戏,可选参数为投入的货币数额。
|
|
1354
|
+
- 词影有细分模式的排行榜,可自行使用 \`help\` 探索。
|
|
1355
|
+
- 可自行在 \`idioms.json\` 中添加成语,例如“原神启动”,注意格式即可(注意:JSON 格式最后一项不需要逗号)。
|
|
1362
1356
|
|
|
1363
|
-
|
|
1357
|
+
## 关键指令
|
|
1364
1358
|
|
|
1365
|
-
- \`wordleGame.开始 [
|
|
1366
|
-
-
|
|
1359
|
+
- \`wordleGame.开始 [待猜词的长度]\`
|
|
1360
|
+
- 开始游戏引导。
|
|
1367
1361
|
|
|
1368
|
-
- \`wordleGame.开始.经典/CET4/6/GMAT/GRE/IELTS/SAT/TOEFL/考研/专八/专四/ALL/Lewdle/Numberle/Math/汉兜/词影 [
|
|
1369
|
-
-
|
|
1370
|
-
- 对于经典模式和汉兜模式,可投入货币,赢了有奖励。
|
|
1362
|
+
- \`wordleGame.开始.经典/CET4/6/GMAT/GRE/IELTS/SAT/TOEFL/考研/专八/专四/ALL/Lewdle/Numberle/Math/汉兜/词影 [待猜词的长度]\`
|
|
1363
|
+
- 经典模式和汉兜模式,输加入指令可投入货币,赢了有奖励。
|
|
1371
1364
|
- \`--hard\`
|
|
1372
1365
|
- 困难模式,绿色线索必须保特固定,黄色线索必须重复使用。在词影模式下,将提高匹配难度。
|
|
1373
1366
|
- \`--uhard\`
|
|
1374
1367
|
- 超困难模式,在困难模式的基础上,黄色线索必须远离它们被线索的地方,灰色的线索必须被遵守。
|
|
1375
1368
|
- \`--absurd\`
|
|
1376
1369
|
- 在这种模式下,你将面对一个极具挑战性的对手。
|
|
1377
|
-
- 荒谬/变态模式,AI将尽量避免给出答案。
|
|
1370
|
+
- 荒谬/变态模式,AI 将尽量避免给出答案。
|
|
1378
1371
|
- 每次猜测时都会尽可能少地透露信息,甚至可能更换秘密词。
|
|
1379
1372
|
- [如何玩?](https://qntm.org/absurdle)
|
|
1380
1373
|
- \`--challenge\`
|
|
1381
1374
|
- 仅建议高级玩家尝试。
|
|
1382
1375
|
- 荒谬/变态挑战模式,要求你从一个给定的目标词出发,通过某种方式使其变成秘密词。
|
|
1383
1376
|
- [如何玩?](https://qntm.org/challenge)
|
|
1384
|
-
- \`--wordles
|
|
1385
|
-
-
|
|
1377
|
+
- \`--wordles <多开的数量>\`
|
|
1378
|
+
- 同时猜测多个,默认范围为 1 ~ 4。可自行配置。
|
|
1386
1379
|
- \`--free\`
|
|
1387
|
-
-
|
|
1380
|
+
- 汉兜&词影的自由模式,任意四字词语都可作为猜测词。
|
|
1388
1381
|
- \`--all\`
|
|
1389
|
-
-
|
|
1390
|
-
|
|
1391
|
-
> Tip:可以同时启用困难模式和变态模式。
|
|
1392
|
-
|
|
1393
|
-
### 游戏操作
|
|
1382
|
+
- 汉兜&词影的全成语模式。开启时,词语数量为 29766+ 个(含生僻字,极难);关闭时,为 7208 个常用成语(义务教育)。
|
|
1383
|
+
- 可同时启用困难模式和变态模式。
|
|
1394
1384
|
|
|
1395
1385
|
- \`wordleGame.猜 [inputWord:text]\` - 猜单词|成语|...,参数为输入的词。
|
|
1396
1386
|
- \`-r\`
|
|
1397
|
-
-
|
|
1398
|
-
- \`wordleGame.查询进度\` - 查询当前游戏进度。
|
|
1399
|
-
|
|
1400
|
-
### 数据查询
|
|
1387
|
+
- 随机猜测一次。
|
|
1401
1388
|
|
|
1402
|
-
|
|
1403
|
-
- \`wordleGame.单词查找器\` - 使用 [WordFinder](https://wordword.org/) 查找匹配的单词。
|
|
1404
|
-
- \`wordleGame.拼音速查表\` - 查看拼音速查表(会根据汉兜游戏进度自动变化)。
|
|
1405
|
-
- \`wordleGame.排行榜 [number:number]\` - 查看排行榜,可选参数为排行榜的人数。
|
|
1406
|
-
- \`wordleGame.查单词.ALL [targetWord:text]\` - 在 ALL 词库中查询单词信息(翻译)。
|
|
1407
|
-
- \`wordleGame.查成语.汉典 [targetWord:text]\` - 在 [汉典](https://www.zdic.net/) 中查询成语信息(台湾词典)。
|
|
1408
|
-
- \`wordleGame.查询玩家记录 [targetUser:text]\` - 查询玩家记录,可选参数为目标玩家的 at 信息。
|
|
1409
|
-
- \`wordleGame.查成语.百度汉语 [targetWord:text]\` - 在 [百度汉语](https://hanyu.baidu.com/) 中查询成语信息(内地)。
|
|
1410
|
-
- \`wordleGame.查单词.WordWord [targetWord:text]\` - 在 [WordWord](https://wordword.org/) 中查询单词信息(英文定义)。
|
|
1411
|
-
- \`wordleGame.排行榜.损益/总.胜场/总.输场/经典/CET4/CET6/GMAT/GRE/IELTS/SAT/TOEFL/考研/专八/专四/ALL/Lewdle/汉兜/Numberle/Math.胜场/输场/最快用时 [number:number]\` -
|
|
1412
|
-
查看不同模式的玩家排行榜,可选参数为排行榜的人数(偷偷插一嘴,词影有细分模式的排行榜哦~ 用 help 自行探索咯!)。
|
|
1413
|
-
|
|
1414
|
-
## 🐱 QQ 群
|
|
1389
|
+
## QQ 群
|
|
1415
1390
|
|
|
1416
1391
|
- 956758505
|
|
1417
1392
|
`;
|
|
@@ -1657,7 +1632,9 @@ async function apply(ctx, config) {
|
|
|
1657
1632
|
if (!config.enableWordGuessMiddleware) {
|
|
1658
1633
|
return await next();
|
|
1659
1634
|
}
|
|
1660
|
-
|
|
1635
|
+
if (content2) {
|
|
1636
|
+
content2 = `${import_koishi.h.select(content2, "text")}`.trim();
|
|
1637
|
+
}
|
|
1661
1638
|
const gameInfo = await getGameInfo(channelId);
|
|
1662
1639
|
if (!gameInfo.isStarted) {
|
|
1663
1640
|
return await next();
|
|
@@ -4036,7 +4013,6 @@ ${leaderboard.join("\n")}`;
|
|
|
4036
4013
|
${leaderboard}`;
|
|
4037
4014
|
}
|
|
4038
4015
|
__name(getLeaderboardFastestGuessTime, "getLeaderboardFastestGuessTime");
|
|
4039
|
-
;
|
|
4040
4016
|
async function generateLetterTilesHtml(wordGuess, inputWord, channelId, wordleIndex, gameInfo) {
|
|
4041
4017
|
const wordHtml = new Array(inputWord.length);
|
|
4042
4018
|
const letterCountMap = {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-wordle-game",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "2.
|
|
3
|
+
"description": "Koishi 的 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](https://handle.antfu.me/) | [词影](https://cy.surprising.studio/) | [Numberle](https://dduarte.github.io/numberle/) | [Math](https://numberle.org/) | [Lewdle](https://www.lewdlegame.com/App) 游戏插件。",
|
|
4
|
+
"version": "2.6.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -61,12 +61,12 @@
|
|
|
61
61
|
"猜"
|
|
62
62
|
],
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"koishi": "^4.
|
|
64
|
+
"koishi": "^4.18.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"koishi-plugin-markdown-to-image-service": "^1.2.1",
|
|
68
68
|
"koishi-plugin-monetary": "^0.1.3",
|
|
69
|
-
"koishi-plugin-puppeteer": "^3.
|
|
69
|
+
"koishi-plugin-puppeteer": "^3.9.0"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"cheerio": "^1.0.0"
|
package/readme.md
CHANGED
|
@@ -2,202 +2,59 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/koishi-plugin-wordle-game)
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
- [koishi-plugin-wordle-game](#koishi-plugin-wordle-game)
|
|
8
|
-
- [📚 目录](#-目录)
|
|
9
|
-
- [🎮 简介](#-简介)
|
|
10
|
-
- [🚀 安装](#-安装)
|
|
11
|
-
- [🎣 使用](#-使用)
|
|
12
|
-
- [🎛 配置](#-配置)
|
|
13
|
-
- [主题设置](#主题设置)
|
|
14
|
-
- [游戏设置](#游戏设置)
|
|
15
|
-
- [游戏行为设置](#游戏行为设置)
|
|
16
|
-
- [🎳 游戏指令](#-游戏指令)
|
|
17
|
-
- [游戏操作](#游戏操作)
|
|
18
|
-
- [游戏模式](#游戏模式)
|
|
19
|
-
- [游戏操作](#游戏操作-1)
|
|
20
|
-
- [数据查询](#数据查询)
|
|
21
|
-
- [🌸测试图](#测试图)
|
|
22
|
-
- [经典模式](#经典模式)
|
|
23
|
-
- [汉兜模式](#汉兜模式)
|
|
24
|
-
- [词影模式](#词影模式)
|
|
25
|
-
- [方程式模式](#方程式模式)
|
|
26
|
-
- [开始游戏引导](#开始游戏引导)
|
|
27
|
-
- [查询进度](#查询进度)
|
|
28
|
-
- [同时猜多个](#同时猜多个)
|
|
29
|
-
- [拼音速查表](#拼音速查表)
|
|
30
|
-
- [查单词](#查单词)
|
|
31
|
-
- [英译中](#英译中)
|
|
32
|
-
- [英译英](#英译英)
|
|
33
|
-
- [查成语](#查成语)
|
|
34
|
-
- [查询玩家记录](#查询玩家记录)
|
|
35
|
-
- [单词查找器](#单词查找器)
|
|
36
|
-
- [排行榜引导](#排行榜引导)
|
|
37
|
-
- [🍰 致谢](#-致谢)
|
|
38
|
-
- [✨ License](#-license)
|
|
39
|
-
|
|
40
|
-
## 🎮 简介
|
|
41
|
-
|
|
42
|
-
`koishi-plugin-wordle-game` 是一个基于 Koishi
|
|
43
|
-
框架的 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](https://handle.antfu.me/) | [词影](https://cy.surprising.studio/) |...
|
|
44
|
-
猜单词|猜成语|猜数字|猜数学方程式... 的小游戏插件。
|
|
45
|
-
|
|
46
|
-
主要功能:
|
|
47
|
-
|
|
48
|
-
- **可自定义游戏设置**:支持自定义猜词长度等设置。
|
|
49
|
-
|
|
50
|
-
- **排行榜系统**:支持查询不同模式下的总胜负场次。
|
|
51
|
-
|
|
52
|
-
- **多种游戏模式**:支持经典、汉兜、词影、方程式等多种游戏模式。
|
|
53
|
-
|
|
54
|
-
- **经典模式**:随机从经典的 Wordle 英文单词中抽选,投入金币获得奖励。
|
|
55
|
-
|
|
56
|
-
- **多种题库模式**:涵盖 CET4/6、GRE、GMAT、IELTS、SAT、TOEFL、考研、ALL等考试和类别的热点单词。
|
|
57
|
-
|
|
58
|
-
> 共同游戏,提高英语水平,增进友谊,尽情享受游戏的乐趣。
|
|
59
|
-
|
|
60
|
-
## 🚀 安装
|
|
61
|
-
|
|
62
|
-
您可以通过以下命令安装该插件:
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
npm install koishi-plugin-wordle-game
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
或者通过 Koishi 插件市场搜索并安装该插件。
|
|
69
|
-
|
|
70
|
-
## 🎣 使用
|
|
71
|
-
|
|
72
|
-
- 启动必要的服务。您需要启用 `monetary`,`database` 和 `puppeteer` 插件。
|
|
73
|
-
- 以实现货币系统,数据存储和图片生成的功能。
|
|
74
|
-
- 建议自行添加指令别名,以方便您和您的用户使用。
|
|
75
|
-
- 享受猜单词|四字词语|成语|数字|...游戏吧!😊
|
|
76
|
-
- 如果使用过程中出现成语的未知错误,可以前往 `data/wordleGame/idioms.json` 文件中搜索该成语,查看是否存在拼音的错误。
|
|
77
|
-
- 当然你也可以直接删除这个 `idioms.json`
|
|
78
|
-
文件,然后重新启动机器人,这样会重新生成一个可能已经修复问题的新的 `idioms.json` 文件。
|
|
79
|
-
- 这个文件里可以添加自定义的成语 0.0,例如:如果你想加 “原神启动” 也是可以的,注意格式即可(提醒:最后一个元素后面不要加逗号,因为不符合 JSON 格式)。
|
|
80
|
-
- 遇到解决不了的问题,也可以想办法联系我,我很乐意帮助你!希望你玩的开心~😊
|
|
81
|
-
|
|
82
|
-
## 🎛 配置
|
|
83
|
-
|
|
84
|
-
### 主题设置
|
|
85
|
-
|
|
86
|
-
- `isDarkThemeEnabled: boolean`
|
|
87
|
-
- 是否开启黑暗主题,默认值为 `false`。
|
|
88
|
-
- `isHighContrastThemeEnabled: boolean`
|
|
89
|
-
- 是否开启高对比度(色盲)主题,默认值为 `false`。
|
|
90
|
-
|
|
91
|
-
### 游戏设置
|
|
92
|
-
|
|
93
|
-
- `defaultMaxLeaderboardEntries: number`
|
|
94
|
-
- 显示排行榜时默认的最大人数。默认值为 `10`。
|
|
95
|
-
- `defaultWordLengthForGuessing: number`
|
|
96
|
-
- 非经典游戏模式下,默认的猜单词长度。默认值为 `5`。
|
|
97
|
-
- `maxInvestmentCurrency: number`
|
|
98
|
-
- 加入游戏时可投入的最大货币数额。默认值为 `50`。
|
|
99
|
-
- `defaultRewardMultiplier: number`
|
|
100
|
-
- 猜单词经典模式赢了之后奖励的货币倍率。默认值为 `2`。
|
|
101
|
-
- `maxSimultaneousGuesses: number`
|
|
102
|
-
- 最多同时猜测单词的数量,默认值为 `4`。
|
|
103
|
-
- `compositeImagePageWidth: number`
|
|
104
|
-
- 合成图片页面宽度,默认值为 `800`。
|
|
105
|
-
- `compositeImagePageHeight: number`
|
|
106
|
-
- 合成图片页面高度,默认值为 `100`。
|
|
107
|
-
|
|
108
|
-
### 游戏行为设置
|
|
109
|
-
|
|
110
|
-
- `allowNonPlayersToGuess: boolean`
|
|
111
|
-
- 是否允许未加入游戏的玩家进行猜单词的操作,开启后可以无需加入直接开始。默认值为 `true`。
|
|
112
|
-
- `isPreventUserDuplicateGuessInput: boolean`
|
|
113
|
-
- 是否阻止玩家重复猜测相同的单词。默认值为 `true`。
|
|
114
|
-
- `enableWordGuessMiddleware: boolean`
|
|
115
|
-
- 是否开启猜单词指令无前缀的中间件。默认值为 `true`。
|
|
116
|
-
- `shouldPromptWordLengthInput: boolean`
|
|
117
|
-
- 是否在开始游戏引导中提示输入猜单词的长度,不开启则为默认长度。默认值为 `true`。
|
|
118
|
-
- `shouldPromptForWordLengthOnNonClassicStart: boolean`
|
|
119
|
-
- 是否在开始非经典模式时提示输入猜单词的长度,不开启则为默认长度。默认值为 `true`。
|
|
120
|
-
- `enableWordGuessTimeLimit: boolean`
|
|
121
|
-
- 是否开启猜单词游戏作答时间限制功能。默认值为 `false`。
|
|
122
|
-
- `wordGuessTimeLimitInSeconds: number`
|
|
123
|
-
- 猜单词游戏作答时间,单位是秒。默认值为 `120`。
|
|
124
|
-
- `retractDelay`:自动撤回等待的时间,默认值为 0,单位是秒。值为 0 时不启用自动撤回功能。
|
|
125
|
-
- `imageType: "png" | "jpeg" | "webp"`
|
|
126
|
-
- 发送的图片类型。默认值为 `"png"`。
|
|
127
|
-
- `isTextToImageConversionEnabled: boolean`
|
|
128
|
-
- 是否开启将文本转为图片的功能(可选),如需启用,需要启用 `markdownToImage` 服务。默认值为 `false`。
|
|
129
|
-
- `isEnableQQOfficialRobotMarkdownTemplate: boolean`
|
|
130
|
-
- 是否启用 QQ 官方机器人的 Markdown 模板,带消息按钮。
|
|
131
|
-
- `customTemplateId: string`
|
|
132
|
-
- 自定义模板 ID。
|
|
133
|
-
- `key: string`
|
|
134
|
-
- 文本内容中特定插值的 key,用于存放文本。如果你的插值为 {{.info}},那么请在这里填 info。
|
|
135
|
-
- `numberOfMessageButtonsPerRow: number`
|
|
136
|
-
- 每行消息按钮的数量。
|
|
137
|
-
- `isUsingUnifiedKoishiBuiltInUsername: boolean`
|
|
138
|
-
- 是否使用统一的 Koishi 内置用户名。
|
|
5
|
+
## 简介
|
|
139
6
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
- `
|
|
156
|
-
|
|
157
|
-
|
|
7
|
+
Koishi 的 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](https://handle.antfu.me/) | [词影](https://cy.surprising.studio/) | [Numberle](https://dduarte.github.io/numberle/) | [Math](https://numberle.org/) | [Lewdle](https://www.lewdlegame.com/App) 游戏插件。
|
|
8
|
+
|
|
9
|
+
## 使用
|
|
10
|
+
|
|
11
|
+
1. 启用 `monetary`,`database` 和 `puppeteer` 服务。
|
|
12
|
+
2. 设置指令别名。
|
|
13
|
+
3. 输入 `wordleGame.开始` 指令引导游戏模式。
|
|
14
|
+
4. 输入猜测词。
|
|
15
|
+
|
|
16
|
+
## 注意事项
|
|
17
|
+
|
|
18
|
+
- 输入成语出现未知错误时,可前往 `data/wordleGame/idioms.json` 文件中搜索该成语,查看是否存在拼音的错误。
|
|
19
|
+
|
|
20
|
+
## 特性
|
|
21
|
+
|
|
22
|
+
- 词影有细分模式的排行榜,可自行使用 `help` 探索。
|
|
23
|
+
- 可自行在 `idioms.json` 中添加成语,例如“原神启动”,注意格式即可(注意:JSON 格式最后一项不需要逗号)。
|
|
24
|
+
|
|
25
|
+
## 关键指令
|
|
26
|
+
|
|
27
|
+
- `wordleGame.开始 [待猜词的长度]`
|
|
28
|
+
- 开始游戏引导。
|
|
29
|
+
|
|
30
|
+
- `wordleGame.开始.经典/CET4/6/GMAT/GRE/IELTS/SAT/TOEFL/考研/专八/专四/ALL/Lewdle/Numberle/Math/汉兜/词影 [待猜词的长度]`
|
|
31
|
+
- 经典模式和汉兜模式,输加入指令可投入货币,赢了有奖励。
|
|
158
32
|
- `--hard`
|
|
159
33
|
- 困难模式,绿色线索必须保特固定,黄色线索必须重复使用。在词影模式下,将提高匹配难度。
|
|
160
34
|
- `--uhard`
|
|
161
35
|
- 超困难模式,在困难模式的基础上,黄色线索必须远离它们被线索的地方,灰色的线索必须被遵守。
|
|
162
36
|
- `--absurd`
|
|
163
37
|
- 在这种模式下,你将面对一个极具挑战性的对手。
|
|
164
|
-
- 荒谬/变态模式,AI将尽量避免给出答案。
|
|
38
|
+
- 荒谬/变态模式,AI 将尽量避免给出答案。
|
|
165
39
|
- 每次猜测时都会尽可能少地透露信息,甚至可能更换秘密词。
|
|
166
40
|
- [如何玩?](https://qntm.org/absurdle)
|
|
167
41
|
- `--challenge`
|
|
168
42
|
- 仅建议高级玩家尝试。
|
|
169
43
|
- 荒谬/变态挑战模式,要求你从一个给定的目标词出发,通过某种方式使其变成秘密词。
|
|
170
44
|
- [如何玩?](https://qntm.org/challenge)
|
|
171
|
-
- `--wordles
|
|
172
|
-
-
|
|
45
|
+
- `--wordles <多开的数量>`
|
|
46
|
+
- 同时猜测多个,默认范围为 1 ~ 4。可自行配置。
|
|
173
47
|
- `--free`
|
|
174
|
-
-
|
|
48
|
+
- 汉兜&词影的自由模式,任意四字词语都可作为猜测词。
|
|
175
49
|
- `--all`
|
|
176
|
-
-
|
|
177
|
-
|
|
178
|
-
> Tip:可以同时启用困难模式和变态模式。
|
|
179
|
-
|
|
180
|
-
### 游戏操作
|
|
50
|
+
- 汉兜&词影的全成语模式。开启时,词语数量为 29766+ 个(含生僻字,极难);关闭时,为 7208 个常用成语(义务教育)。
|
|
51
|
+
- 可同时启用困难模式和变态模式。
|
|
181
52
|
|
|
182
53
|
- `wordleGame.猜 [inputWord:text]` - 猜单词|成语|...,参数为输入的词。
|
|
183
54
|
- `-r`
|
|
184
|
-
-
|
|
185
|
-
- `wordleGame.查询进度` - 查询当前游戏进度。
|
|
186
|
-
|
|
187
|
-
### 数据查询
|
|
55
|
+
- 随机猜测一次。
|
|
188
56
|
|
|
189
|
-
|
|
190
|
-
- `wordleGame.单词查找器` - 使用 [WordFinder](https://wordword.org/) 查找匹配的单词。
|
|
191
|
-
- `wordleGame.拼音速查表` - 查看拼音速查表(会根据汉兜游戏进度自动变化)。
|
|
192
|
-
- `wordleGame.排行榜 [number:number]` - 查看排行榜,可选参数为排行榜的人数。
|
|
193
|
-
- `wordleGame.查单词.ALL [targetWord:text]` - 在 ALL 词库中查询单词信息(翻译)。
|
|
194
|
-
- `wordleGame.查成语.汉典 [targetWord:text]` - 在 [汉典](https://www.zdic.net/) 中查询成语信息(台湾词典)。
|
|
195
|
-
- `wordleGame.查询玩家记录 [targetUser:text]` - 查询玩家记录,可选参数为目标玩家的 at 信息。
|
|
196
|
-
- `wordleGame.查成语.百度汉语 [targetWord:text]` - 在 [百度汉语](https://hanyu.baidu.com/) 中查询成语信息(内地)。
|
|
197
|
-
- `wordleGame.查单词.WordWord [targetWord:text]` - 在 [WordWord](https://wordword.org/) 中查询单词信息(英文定义)。
|
|
198
|
-
- `wordleGame.排行榜.损益/总.胜场/总.输场/经典/CET4/CET6/GMAT/GRE/IELTS/SAT/TOEFL/考研/专八/专四/ALL/Lewdle/汉兜/Numberle/Math.胜场/输场/最快用时 [number:number]` - 查看不同模式的玩家排行榜,可选参数为排行榜的人数(偷偷插一嘴,词影有细分模式的排行榜哦~ 用 help 自行探索咯!)。
|
|
199
|
-
|
|
200
|
-
## 🌸测试图
|
|
57
|
+
## 测试图
|
|
201
58
|
|
|
202
59
|
<details>
|
|
203
60
|
<summary>点击这里展开/折叠内容</summary>
|
|
@@ -264,10 +121,11 @@ npm install koishi-plugin-wordle-game
|
|
|
264
121
|
|
|
265
122
|
</details>
|
|
266
123
|
|
|
267
|
-
##
|
|
124
|
+
## 致谢
|
|
268
125
|
|
|
269
126
|
- [Koishi](https://koishi.chat/) - 机器人框架
|
|
270
|
-
-
|
|
127
|
+
- ly、麦神等朋友的纠错&反馈
|
|
128
|
+
- [Akisa](https://forum.koishi.xyz/u/akisa/summary) - Akisa 大人
|
|
271
129
|
- [汉典](https://www.zdic.net/) - 查找成语
|
|
272
130
|
- [汉兜](https://handle.antfu.me/) - 汉兜游戏样式
|
|
273
131
|
- [百度汉语](https://hanyu.baidu.com/) - 查找成语
|
|
@@ -278,20 +136,15 @@ npm install koishi-plugin-wordle-game
|
|
|
278
136
|
- [Wordle](https://www.nytimes.com/games/wordle/index.html) - 原版 Wordle 游戏网页样式
|
|
279
137
|
- [LewdleGame](https://www.lewdlegame.com/App) - Lewdle 模式单词列表
|
|
280
138
|
- [WordlePlay](https://wordleplay.com/wordle-games) - 拓展玩法/单词列表补充
|
|
281
|
-
- 感谢 ly、麦神等朋友的纠错与反馈喵 ~
|
|
282
139
|
- [skywind3000/ECDICT](https://github.com/skywind3000/ECDICT) - 英汉语词典数据库
|
|
283
140
|
- [koishi-plugin-wordle](https://www.npmjs.com/package/koishi-plugin-wordle) - Wordle 经典模式词典
|
|
284
141
|
- [nonebot-plugin-wordle](https://github.com/noneplugin/nonebot-plugin-wordle) - Nonebot Wordle 的词典
|
|
285
|
-
- [Wordle 2315 words list](https://gist.github.com/DevilXD/6ad6cc1fe37872d069a795edd51233b2#file-wordle_words-txt) - 经典 Wordle
|
|
142
|
+
- [Wordle 2315 words list](https://gist.github.com/DevilXD/6ad6cc1fe37872d069a795edd51233b2#file-wordle_words-txt) - 经典 Wordle 单词列表
|
|
286
143
|
|
|
287
|
-
##
|
|
144
|
+
## QQ 群
|
|
288
145
|
|
|
289
146
|
- 956758505
|
|
290
147
|
|
|
291
|
-
##
|
|
148
|
+
## License
|
|
292
149
|
|
|
293
150
|
MIT License © 2024
|
|
294
|
-
|
|
295
|
-
希望您喜欢这款插件! 💫
|
|
296
|
-
|
|
297
|
-
如有任何问题或建议,欢迎联系我哈~ 🎈
|