koishi-plugin-wordle-game 2.6.2 → 2.6.4

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 CHANGED
@@ -32,7 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
32
32
 
33
33
  // src/assets/词影/vendor.js
34
34
  var require_vendor = __commonJS({
35
- "src/assets/词影/vendor.js"(exports) {
35
+ "src/assets/词影/vendor.js"(exports2) {
36
36
  function R() {
37
37
  }
38
38
  __name(R, "R");
@@ -768,7 +768,7 @@ var require_vendor = __commonJS({
768
768
  delay: t,
769
769
  duration: n,
770
770
  easing: o,
771
- css: (b) => `opacity: ${b * l2}`
771
+ css: /* @__PURE__ */ __name((b) => `opacity: ${b * l2}`, "css")
772
772
  };
773
773
  }
774
774
  __name(di, "di");
@@ -778,9 +778,9 @@ var require_vendor = __commonJS({
778
778
  delay: t,
779
779
  duration: n,
780
780
  easing: o,
781
- css: (h2, i) => `
781
+ css: /* @__PURE__ */ __name((h2, i) => `
782
782
  transform: ${f} translate(${(1 - h2) * l2}px, ${(1 - h2) * b}px);
783
- opacity: ${w - g * i}`
783
+ opacity: ${w - g * i}`, "css")
784
784
  };
785
785
  }
786
786
  __name(wi, "wi");
@@ -793,11 +793,11 @@ var require_vendor = __commonJS({
793
793
  delay: g,
794
794
  duration: F(h2) ? h2(A) : h2,
795
795
  easing: i,
796
- css: (k, M) => `
796
+ css: /* @__PURE__ */ __name((k, M) => `
797
797
  opacity: ${k * T};
798
798
  transform-origin: top left;
799
799
  transform: ${m} translate(${M * r}px,${M * s}px) scale(${k + (1 - k) * c}, ${k + (1 - k) * E});
800
- `
800
+ `, "css")
801
801
  };
802
802
  }
803
803
  __name(b, "b");
@@ -1004,70 +1004,70 @@ var require_vendor = __commonJS({
1004
1004
  }
1005
1005
  })(typeof window == "object" ? window : Nt);
1006
1006
  })(Ye, Ye.exports);
1007
- exports.$ = Ye;
1008
- exports.A = Ht;
1009
- exports.B = Gt;
1010
- exports.C = Dt;
1011
- exports.D = Lt;
1012
- exports.E = Qe;
1013
- exports.F = Yt;
1014
- exports.G = li;
1015
- exports.H = Et;
1016
- exports.I = ei;
1017
- exports.J = Ot2;
1018
- exports.K = ci;
1019
- exports.L = Qt;
1020
- exports.M = ti;
1021
- exports.N = ii;
1022
- exports.O = hi;
1023
- exports.P = Bt;
1024
- exports.Q = Pt;
1025
- exports.R = jt;
1026
- exports.S = fi;
1027
- exports.T = zt;
1028
- exports.U = wi;
1029
- exports.V = di;
1030
- exports.W = qt2;
1031
- exports.X = Kt;
1032
- exports.Y = Rt;
1033
- exports.Z = Tt;
1034
- exports._ = Zt;
1035
- exports.a = It;
1036
- exports.a0 = ai;
1037
- exports.a1 = si;
1038
- exports.a2 = ri;
1039
- exports.a3 = oi;
1040
- exports.b = Wt;
1041
- exports.c = Ut;
1042
- exports.d = ut;
1043
- exports.e = wt;
1044
- exports.f = dt;
1045
- exports.g = $t;
1046
- exports.h = pi;
1047
- exports.i = ui;
1048
- exports.j = Vt;
1049
- exports.k = kt;
1050
- exports.l = Ft;
1051
- exports.m = xt;
1052
- exports.n = R;
1053
- exports.o = $e;
1054
- exports.p = Ct;
1055
- exports.q = Jt;
1056
- exports.r = j;
1057
- exports.s = ct;
1058
- exports.t = tt;
1059
- exports.u = bi;
1060
- exports.v = We;
1061
- exports.w = Mt;
1062
- exports.x = Xt;
1063
- exports.y = V;
1064
- exports.z = ni;
1007
+ exports2.$ = Ye;
1008
+ exports2.A = Ht;
1009
+ exports2.B = Gt;
1010
+ exports2.C = Dt;
1011
+ exports2.D = Lt;
1012
+ exports2.E = Qe;
1013
+ exports2.F = Yt;
1014
+ exports2.G = li;
1015
+ exports2.H = Et;
1016
+ exports2.I = ei;
1017
+ exports2.J = Ot2;
1018
+ exports2.K = ci;
1019
+ exports2.L = Qt;
1020
+ exports2.M = ti;
1021
+ exports2.N = ii;
1022
+ exports2.O = hi;
1023
+ exports2.P = Bt;
1024
+ exports2.Q = Pt;
1025
+ exports2.R = jt;
1026
+ exports2.S = fi;
1027
+ exports2.T = zt;
1028
+ exports2.U = wi;
1029
+ exports2.V = di;
1030
+ exports2.W = qt2;
1031
+ exports2.X = Kt;
1032
+ exports2.Y = Rt;
1033
+ exports2.Z = Tt;
1034
+ exports2._ = Zt;
1035
+ exports2.a = It;
1036
+ exports2.a0 = ai;
1037
+ exports2.a1 = si;
1038
+ exports2.a2 = ri;
1039
+ exports2.a3 = oi;
1040
+ exports2.b = Wt;
1041
+ exports2.c = Ut;
1042
+ exports2.d = ut;
1043
+ exports2.e = wt;
1044
+ exports2.f = dt;
1045
+ exports2.g = $t;
1046
+ exports2.h = pi;
1047
+ exports2.i = ui;
1048
+ exports2.j = Vt;
1049
+ exports2.k = kt;
1050
+ exports2.l = Ft;
1051
+ exports2.m = xt;
1052
+ exports2.n = R;
1053
+ exports2.o = $e;
1054
+ exports2.p = Ct;
1055
+ exports2.q = Jt;
1056
+ exports2.r = j;
1057
+ exports2.s = ct;
1058
+ exports2.t = tt;
1059
+ exports2.u = bi;
1060
+ exports2.v = We;
1061
+ exports2.w = Mt;
1062
+ exports2.x = Xt;
1063
+ exports2.y = V;
1064
+ exports2.z = ni;
1065
1065
  }
1066
1066
  });
1067
1067
 
1068
1068
  // src/assets/词影/main.js
1069
1069
  var require_main = __commonJS({
1070
- "src/assets/词影/main.js"(exports, module2) {
1070
+ "src/assets/词影/main.js"(exports2, module2) {
1071
1071
  var {
1072
1072
  S: se,
1073
1073
  i: oe,
@@ -1865,8 +1865,7 @@ ${isQQOfficialRobotMarkdownTemplateEnabled && session.platform === "qq" ? `` : `
1865
1865
  ${exams.map((exam, index) => `${index + 1}. ${exam}`).join("\n")}`}
1866
1866
  请输入要开始的${isQQOfficialRobotMarkdownTemplateEnabled && session.platform === "qq" ? `` : `【序号】或`}【模式名】:`, `经典 CET4 CET6 GMAT GRE IELTS SAT TOEFL 考研 专八 专四 ALL 脏话 汉兜 数字 方程 词影`, 4);
1867
1867
  const userInput = await session.prompt();
1868
- if (!userInput)
1869
- return await sendMessage(session, `【@${username}】
1868
+ if (!userInput) return await sendMessage(session, `【@${username}】
1870
1869
  输入无效或超时。`, `改名 开始游戏`);
1871
1870
  const selectedExam = isNaN(parseInt(userInput)) ? userInput.toUpperCase().trim() : exams[parseInt(userInput) - 1].toUpperCase();
1872
1871
  const examsInUpperCase = exams.map((exam) => exam.toUpperCase());
@@ -1877,8 +1876,7 @@ ${exams.map((exam, index) => `${index + 1}. ${exam}`).join("\n")}`}
1877
1876
  长度可选值范围:${getValidGuessWordLengthRange(selectedExam)}
1878
1877
  请输入待猜项目的的长度:`, `输入`);
1879
1878
  const userInput2 = await session.prompt();
1880
- if (!userInput2)
1881
- return await sendMessage(session, `【@${username}】
1879
+ if (!userInput2) return await sendMessage(session, `【@${username}】
1882
1880
  输入无效或超时。`, `改名 开始游戏`);
1883
1881
  guessWordLength = parseInt(userInput2);
1884
1882
  } else {
@@ -2133,8 +2131,7 @@ ${wordCount}${timeLimit}`, `结束游戏 猜测`, 2);
2133
2131
  长度可选值范围:${getValidGuessWordLengthRange(exam)}
2134
2132
  请输入待猜测项目的长度:`, `输入`);
2135
2133
  const userInput = await session.prompt();
2136
- if (!userInput)
2137
- return await sendMessage(session, `【@${username}】
2134
+ if (!userInput) return await sendMessage(session, `【@${username}】
2138
2135
  输入无效或超时。`, `改名 开始游戏`);
2139
2136
  guessWordLength = parseInt(userInput);
2140
2137
  } else {
@@ -2386,11 +2383,9 @@ ${image}`, `结束游戏 猜测`);
2386
2383
  await sendMessage(session, `【@${username}】
2387
2384
  请输入【猜测词】或【取消】:`, `取消 输入`);
2388
2385
  const userInput = await session.prompt();
2389
- if (!userInput)
2390
- return await sendMessage(session, `【${username}】
2386
+ if (!userInput) return await sendMessage(session, `【${username}】
2391
2387
  输入无效或超时。`, `猜测`);
2392
- if (userInput === "取消")
2393
- return await sendMessage(session, `【${username}】
2388
+ if (userInput === "取消") return await sendMessage(session, `【${username}】
2394
2389
  猜测操作已取消!`, `猜测`);
2395
2390
  inputWord = userInput.trim();
2396
2391
  }
@@ -2510,7 +2505,7 @@ ${progressMessage}`, `猜测`);
2510
2505
  if (foundItem) {
2511
2506
  userInputPinyin = foundItem.pinyin;
2512
2507
  } else {
2513
- userInputPinyin = await sendPostRequestForGPT1106(inputWord);
2508
+ userInputPinyin = await sendPostRequestForAI(inputWord);
2514
2509
  if (userInputPinyin !== "") {
2515
2510
  const newItem = {
2516
2511
  term: inputWord,
@@ -2921,8 +2916,7 @@ ${generateStatsInfo(stats, fastestGuessTime)}
2921
2916
  ${availableDictionaryArray.map((dictionary, index) => `${index + 1}. ${dictionary}`).join("\n")}
2922
2917
  请输入您选择的【序号】或【词库名】:`, `ALL WordWord`);
2923
2918
  const userInput = await session.prompt();
2924
- if (!userInput)
2925
- return await sendMessage(session, `【@${username}】
2919
+ if (!userInput) return await sendMessage(session, `【@${username}】
2926
2920
  输入无效或超时。`, `查单词`);
2927
2921
  const selectedDictionary = isNaN(parseInt(userInput)) ? userInput.toLowerCase().trim() : availableDictionaryArrayToLowerCase[parseInt(userInput) - 1];
2928
2922
  if (availableDictionaryArrayToLowerCase.includes(selectedDictionary)) {
@@ -2947,11 +2941,9 @@ ${availableDictionaryArray.map((dictionary, index) => `${index + 1}. ${dictionar
2947
2941
  await sendMessage(session, `【@${username}】
2948
2942
  请输入【待查询的单词】或【取消】:`, `取消 输入`);
2949
2943
  const userInput = await session.prompt();
2950
- if (!userInput)
2951
- return await sendMessage(session, `【@${username}】
2944
+ if (!userInput) return await sendMessage(session, `【@${username}】
2952
2945
  输入无效或超时。`, `查单词`);
2953
- if (userInput === "取消")
2954
- return await sendMessage(session, `【@${username}】
2946
+ if (userInput === "取消") return await sendMessage(session, `【@${username}】
2955
2947
  查询单词操作已取消。`, `查单词`);
2956
2948
  targetWord = userInput.trim();
2957
2949
  }
@@ -2982,11 +2974,9 @@ ${replaceEscapeCharacters(foundWord.translation)}`, `查单词`);
2982
2974
  await sendMessage(session, `【@${username}】
2983
2975
  请输入【待查找的单词】或【取消】:`, `取消 输入`);
2984
2976
  const userInput = await session.prompt();
2985
- if (!userInput)
2986
- return await sendMessage(session, `【@${username}】
2977
+ if (!userInput) return await sendMessage(session, `【@${username}】
2987
2978
  输入无效或超时。`, `查单词`);
2988
- if (userInput === "取消")
2989
- return await sendMessage(session, `【@${username}】
2979
+ if (userInput === "取消") return await sendMessage(session, `【@${username}】
2990
2980
  查找单词操作已取消。`, `查单词`);
2991
2981
  targetWord = userInput.trim();
2992
2982
  }
@@ -3019,8 +3009,7 @@ ${serializedDefinitions ? serializedDefinitions : `- 该单词定义暂未收录
3019
3009
  ${availableDictionaryArray.map((dictionary, index) => `${index + 1}. ${dictionary}`).join("\n")}
3020
3010
  请输入您选择的【序号】或【词库名】:`, `百度汉语 汉典`);
3021
3011
  const userInput = await session.prompt();
3022
- if (!userInput)
3023
- return await sendMessage(session, `【@${username}】
3012
+ if (!userInput) return await sendMessage(session, `【@${username}】
3024
3013
  输入无效或超时。`, `查成语`);
3025
3014
  const selectedDictionary = isNaN(parseInt(userInput)) ? userInput.trim() : availableDictionaryArray[parseInt(userInput) - 1];
3026
3015
  if (availableDictionaryArray.includes(selectedDictionary)) {
@@ -3045,11 +3034,9 @@ ${availableDictionaryArray.map((dictionary, index) => `${index + 1}. ${dictionar
3045
3034
  await sendMessage(session, `【@${username}】
3046
3035
  请输入【待查找的成语】或【取消】:`, `取消 输入`);
3047
3036
  const userInput = await session.prompt();
3048
- if (!userInput)
3049
- return await sendMessage(session, `【@${username}】
3037
+ if (!userInput) return await sendMessage(session, `【@${username}】
3050
3038
  输入无效或超时。`, `查成语`);
3051
- if (userInput === "取消")
3052
- return await sendMessage(session, `【@${username}】
3039
+ if (userInput === "取消") return await sendMessage(session, `【@${username}】
3053
3040
  查找成语操作已取消。`, `查成语`);
3054
3041
  targetIdiom = userInput.trim();
3055
3042
  }
@@ -3140,8 +3127,7 @@ ${idiomInfo.explanation}`, `查成语`);
3140
3127
  支持输入多个(用空格隔开)
3141
3128
  例如:1 2`, `单词查找器`);
3142
3129
  userInput = await session.prompt();
3143
- if (!userInput)
3144
- return await sendMessage(session, `【${username}】
3130
+ if (!userInput) return await sendMessage(session, `【${username}】
3145
3131
  输入无效或超时。`, `单词查找器`);
3146
3132
  } else {
3147
3133
  userInput = wordleIndexs;
@@ -3340,8 +3326,7 @@ ${isQQOfficialRobotMarkdownTemplateEnabled && session.platform === "qq" ? `` : `
3340
3326
  ${rankType.map((type, index) => `${index + 1}. ${type}`).join("\n")}`}
3341
3327
  请输入要查看的【排行榜名】${isQQOfficialRobotMarkdownTemplateEnabled && session.platform === "qq" ? `` : `或【序号】`}:`, `总 损益 猜出次数 经典 CET4 CET6 GMAT GRE IELTS SAT TOEFL 考研 专八 专四 ALL 脏话 汉兜 数字 方程 词影`);
3342
3328
  const userInput = await session.prompt();
3343
- if (!userInput)
3344
- return sendMessage(session, `输入无效或超时。`, `排行榜`);
3329
+ if (!userInput) return sendMessage(session, `输入无效或超时。`, `排行榜`);
3345
3330
  const userInputNumber = parseInt(userInput);
3346
3331
  if (!isNaN(userInputNumber) && userInputNumber > 0 && userInputNumber <= rankType.length) {
3347
3332
  const rankName = rankType[userInputNumber - 1];
@@ -3393,8 +3378,7 @@ ${isQQOfficialRobotMarkdownTemplateEnabled && session.platform === "qq" ? `` : `
3393
3378
  ${rankType3.map((type2, index) => `${index + 1}. ${type2}`).join("\n")}`}
3394
3379
  请输入要查看的【类型名】${isQQOfficialRobotMarkdownTemplateEnabled && session.platform === "qq" ? `` : `或【序号】`}:`, rankType3.join(" "));
3395
3380
  const userInput = await session.prompt();
3396
- if (!userInput)
3397
- return sendMessage(session, `输入无效或超时。`, `排行榜`);
3381
+ if (!userInput) return sendMessage(session, `输入无效或超时。`, `排行榜`);
3398
3382
  const userInputNumber = parseInt(userInput);
3399
3383
  if (!isNaN(userInputNumber) && userInputNumber > 0 && userInputNumber <= rankType3.length) {
3400
3384
  const rankName = rankType3[userInputNumber - 1];
@@ -4829,8 +4813,7 @@ ${gridHtml}
4829
4813
  [messageId] = await session.send(message);
4830
4814
  }
4831
4815
  }
4832
- if (config.retractDelay === 0)
4833
- return;
4816
+ if (config.retractDelay === 0) return;
4834
4817
  if (!isPushMessageId) {
4835
4818
  sentMessages.push(messageId);
4836
4819
  }
@@ -4842,10 +4825,10 @@ ${gridHtml}
4842
4825
  }
4843
4826
  }
4844
4827
  __name(sendMessage, "sendMessage");
4845
- async function sendPostRequestForGPT1106(content2) {
4846
- const url = "https://ngedlktfticp.cloud.sealos.io/v1/chat/completions";
4828
+ async function sendPostRequestForAI(content2) {
4829
+ const url = "https://happyapi.org/v1/chat/completions";
4847
4830
  const headers = {
4848
- "Authorization": "sk-0HXyYeM287tS1qsI8bAb5f0c3dB746E9A3Bf416dBf99228d",
4831
+ "Authorization": "sk-vO5N4lICC3gEMRURDbjkrE5RwaKPKHXiEhk1VRTpHd2vvQyU",
4849
4832
  "Content-Type": "application/json"
4850
4833
  };
4851
4834
  const requestBody = {
@@ -4869,7 +4852,7 @@ ${content2}
4869
4852
  }
4870
4853
  ],
4871
4854
  "stream": false,
4872
- "model": "gpt-3.5-turbo-0125",
4855
+ "model": "gpt-4o-mini",
4873
4856
  "temperature": 0.5,
4874
4857
  "presence_penalty": 2
4875
4858
  };
@@ -4892,7 +4875,7 @@ ${content2}
4892
4875
  return "";
4893
4876
  }
4894
4877
  }
4895
- __name(sendPostRequestForGPT1106, "sendPostRequestForGPT1106");
4878
+ __name(sendPostRequestForAI, "sendPostRequestForAI");
4896
4879
  function parseMarkdownCommands(markdownCommands) {
4897
4880
  return markdownCommands.split(" ").filter((command) => command.trim() !== "");
4898
4881
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-wordle-game",
3
3
  "description": "Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。",
4
- "version": "2.6.2",
4
+ "version": "2.6.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -20,7 +20,7 @@
20
20
  ]
21
21
  }
22
22
  },
23
- "license": "MIT",
23
+ "license": "MIT OR Apache-2.0",
24
24
  "author": "Nawyjx <3373167460@qq.com>",
25
25
  "homepage": "https://www.npmjs.com/package/koishi-plugin-wordle-game?activeTab=readme",
26
26
  "repository": {
@@ -1,162 +1,162 @@
1
- # koishi-plugin-wordle-game
2
-
3
- [<img alt="github" src="https://img.shields.io/badge/github-araea/wordle_game-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-wordle-game)
4
- [<img alt="npm" src="https://img.shields.io/npm/v/koishi-plugin-wordle-game.svg?style=for-the-badge&color=fc8d62&logo=npm" height="20">](https://www.npmjs.com/package/koishi-plugin-wordle-game)
5
-
6
- 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) 游戏插件。
7
-
8
- ## 使用
9
-
10
- 1. 启用 `monetary`,`database` 和 `puppeteer` 服务。
11
- 2. 设置指令别名。
12
- 3. 输入 `wordleGame.开始` 指令引导游戏模式。
13
- 4. 输入猜测词。
14
-
15
- ## 注意事项
16
-
17
- - 输入成语出现未知错误时,可前往 `data/wordleGame/idioms.json` 文件中搜索该成语,查看是否存在拼音的错误。
18
-
19
- ## 特性
20
-
21
- - 词影有细分模式的排行榜,可自行使用 `help` 探索。
22
- - 可自行在 `idioms.json` 中添加成语,例如“原神启动”,注意格式即可(注意:JSON 格式最后一项不需要逗号)。
23
-
24
- ## 关键指令
25
-
26
- - `wordleGame.开始 [待猜词的长度]`
27
- - 开始游戏引导。
28
-
29
- - `wordleGame.开始.经典/CET4/6/GMAT/GRE/IELTS/SAT/TOEFL/考研/专八/专四/ALL/Lewdle/Numberle/Math/汉兜/词影 [待猜词的长度]`
30
- - 经典模式和汉兜模式,输加入指令可投入货币,赢了有奖励。
31
- - `--hard`
32
- - 困难模式,绿色线索必须保特固定,黄色线索必须重复使用。在词影模式下,将提高匹配难度。
33
- - `--uhard`
34
- - 超困难模式,在困难模式的基础上,黄色线索必须远离它们被线索的地方,灰色的线索必须被遵守。
35
- - `--absurd`
36
- - 在这种模式下,你将面对一个极具挑战性的对手。
37
- - 荒谬/变态模式,AI 将尽量避免给出答案。
38
- - 每次猜测时都会尽可能少地透露信息,甚至可能更换秘密词。
39
- - [如何玩?](https://qntm.org/absurdle)
40
- - `--challenge`
41
- - 仅建议高级玩家尝试。
42
- - 荒谬/变态挑战模式,要求你从一个给定的目标词出发,通过某种方式使其变成秘密词。
43
- - [如何玩?](https://qntm.org/challenge)
44
- - `--wordles <多开的数量>`
45
- - 同时猜测多个,默认范围为 1 ~ 4。可自行配置。
46
- - `--free`
47
- - 汉兜&词影的自由模式,任意四字词语都可作为猜测词。
48
- - `--all`
49
- - 汉兜&词影的全成语模式。开启时,词语数量为 29766+ 个(含生僻字,极难);关闭时,为 7208 个常用成语(义务教育)。
50
- - 可同时启用困难模式和变态模式。
51
-
52
- - `wordleGame.猜 [inputWord:text]` - 猜单词|成语|...,参数为输入的词。
53
- - `-r`
54
- - 随机猜测一次。
55
-
56
- ## 测试图
57
-
58
- <details>
59
- <summary>点击这里展开/折叠内容</summary>
60
-
61
- ### 经典模式
62
-
63
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/dd55af6e-f38d-4f95-9bed-9d6ba967c429)
64
-
65
- ### 汉兜模式
66
-
67
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/d968f7fe-544b-4d29-a825-8ae59109a50b)
68
-
69
- ### 词影模式
70
-
71
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b11d911b-f534-4800-aef6-e42ef184803c)
72
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/45810d3f-732e-4338-9351-b21f4dd9a814)
73
-
74
- ### 方程式模式
75
-
76
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b792df4b-baa2-4453-83f6-6fb58784b921)
77
-
78
- ### 开始游戏引导
79
-
80
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/80bb3c2b-d41c-44e0-8a4d-acd1845c1644)
81
-
82
- ### 查询进度
83
-
84
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/65e28147-feef-4794-bbbb-9565c65cae36)
85
-
86
- ### 同时猜多个
87
-
88
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/86db4fcf-9a6f-4b15-8c50-6f2d7ea017e3)
89
-
90
- ### 拼音速查表
91
-
92
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/669c625a-9360-4d88-a0ec-01103e82d9f4)
93
-
94
- ### 查单词
95
-
96
- #### 英译中
97
-
98
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/c1913df7-1e1a-4324-a228-ed1679e4e330)
99
-
100
- #### 英译英
101
-
102
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/18f7806e-641c-4135-8255-73e139e7e427)
103
-
104
- ### 查成语
105
-
106
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/76f88dd3-e0b1-48d4-bac7-6cafb0d996c7)
107
-
108
- ### 查询玩家记录
109
-
110
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/a14dd774-4148-4a0e-b7bc-deab8180c919)
111
-
112
- ### 单词查找器
113
-
114
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/4bad2757-8b49-4e39-b2b3-a311e6cfc08f)
115
-
116
- ### 排行榜引导
117
-
118
- ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/9d87c34f-353c-49ed-a885-5ac8128dbd4a)
119
-
120
-
121
- </details>
122
-
123
- ## 致谢
124
-
125
- - [Koishi](https://koishi.chat/) - 机器人框架
126
- - ly、麦神等朋友的纠错&反馈
127
- - [Akisa](https://forum.koishi.xyz/u/akisa/summary) - Akisa 大人
128
- - [汉典](https://www.zdic.net/) - 查找成语
129
- - [汉兜](https://handle.antfu.me/) - 汉兜游戏样式
130
- - [百度汉语](https://hanyu.baidu.com/) - 查找成语
131
- - [WordFinder](https://wordword.org/) - 单词查找
132
- - [Numberle](https://dduarte.github.io/numberle/) - 数字猜测游戏
133
- - [词影](https://cy.surprising.studio/) - 词影游戏代码与样式
134
- - [Numberle](https://numberle.org/) - 数学方程式猜测游戏
135
- - [Wordle](https://www.nytimes.com/games/wordle/index.html) - 原版 Wordle 游戏网页样式
136
- - [LewdleGame](https://www.lewdlegame.com/App) - Lewdle 模式单词列表
137
- - [WordlePlay](https://wordleplay.com/wordle-games) - 拓展玩法/单词列表补充
138
- - [skywind3000/ECDICT](https://github.com/skywind3000/ECDICT) - 英汉语词典数据库
139
- - [koishi-plugin-wordle](https://www.npmjs.com/package/koishi-plugin-wordle) - Wordle 经典模式词典
140
- - [nonebot-plugin-wordle](https://github.com/noneplugin/nonebot-plugin-wordle) - Nonebot Wordle 的词典
141
- - [Wordle 2315 words list](https://gist.github.com/DevilXD/6ad6cc1fe37872d069a795edd51233b2#file-wordle_words-txt) - 经典 Wordle 单词列表
142
-
143
- ## QQ 群
144
-
145
- - 956758505
146
-
147
- <br>
148
-
149
- #### License
150
-
151
- <sup>
152
- Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
153
- 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
154
- </sup>
155
-
156
- <br>
157
-
158
- <sub>
159
- Unless you explicitly state otherwise, any contribution intentionally submitted
160
- for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
161
- be dual licensed as above, without any additional terms or conditions.
162
- </sub>
1
+ # koishi-plugin-wordle-game
2
+
3
+ [<img alt="github" src="https://img.shields.io/badge/github-araea/wordle_game-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-wordle-game)
4
+ [<img alt="npm" src="https://img.shields.io/npm/v/koishi-plugin-wordle-game.svg?style=for-the-badge&color=fc8d62&logo=npm" height="20">](https://www.npmjs.com/package/koishi-plugin-wordle-game)
5
+
6
+ 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) 游戏插件。
7
+
8
+ ## 使用
9
+
10
+ 1. 启用 `monetary`,`database` 和 `puppeteer` 服务。
11
+ 2. 设置指令别名。
12
+ 3. 输入 `wordleGame.开始` 指令引导游戏模式。
13
+ 4. 输入猜测词。
14
+
15
+ ## 注意事项
16
+
17
+ - 输入成语出现未知错误时,可前往 `data/wordleGame/idioms.json` 文件中搜索该成语,查看是否存在拼音的错误。
18
+
19
+ ## 特性
20
+
21
+ - 词影有细分模式的排行榜,可自行使用 `help` 探索。
22
+ - 可自行在 `idioms.json` 中添加成语,例如“原神启动”,注意格式即可(注意:JSON 格式最后一项不需要逗号)。
23
+
24
+ ## 关键指令
25
+
26
+ - `wordleGame.开始 [待猜词的长度]`
27
+ - 开始游戏引导。
28
+
29
+ - `wordleGame.开始.经典/CET4/6/GMAT/GRE/IELTS/SAT/TOEFL/考研/专八/专四/ALL/Lewdle/Numberle/Math/汉兜/词影 [待猜词的长度]`
30
+ - 经典模式和汉兜模式,输加入指令可投入货币,赢了有奖励。
31
+ - `--hard`
32
+ - 困难模式,绿色线索必须保特固定,黄色线索必须重复使用。在词影模式下,将提高匹配难度。
33
+ - `--uhard`
34
+ - 超困难模式,在困难模式的基础上,黄色线索必须远离它们被线索的地方,灰色的线索必须被遵守。
35
+ - `--absurd`
36
+ - 在这种模式下,你将面对一个极具挑战性的对手。
37
+ - 荒谬/变态模式,AI 将尽量避免给出答案。
38
+ - 每次猜测时都会尽可能少地透露信息,甚至可能更换秘密词。
39
+ - [如何玩?](https://qntm.org/absurdle)
40
+ - `--challenge`
41
+ - 仅建议高级玩家尝试。
42
+ - 荒谬/变态挑战模式,要求你从一个给定的目标词出发,通过某种方式使其变成秘密词。
43
+ - [如何玩?](https://qntm.org/challenge)
44
+ - `--wordles <多开的数量>`
45
+ - 同时猜测多个,默认范围为 1 ~ 4。可自行配置。
46
+ - `--free`
47
+ - 汉兜&词影的自由模式,任意四字词语都可作为猜测词。
48
+ - `--all`
49
+ - 汉兜&词影的全成语模式。开启时,词语数量为 29766+ 个(含生僻字,极难);关闭时,为 7208 个常用成语(义务教育)。
50
+ - 可同时启用困难模式和变态模式。
51
+
52
+ - `wordleGame.猜 [inputWord:text]` - 猜单词|成语|...,参数为输入的词。
53
+ - `-r`
54
+ - 随机猜测一次。
55
+
56
+ ## 测试图
57
+
58
+ <details>
59
+ <summary>点击这里展开/折叠内容</summary>
60
+
61
+ ### 经典模式
62
+
63
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/dd55af6e-f38d-4f95-9bed-9d6ba967c429)
64
+
65
+ ### 汉兜模式
66
+
67
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/d968f7fe-544b-4d29-a825-8ae59109a50b)
68
+
69
+ ### 词影模式
70
+
71
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b11d911b-f534-4800-aef6-e42ef184803c)
72
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/45810d3f-732e-4338-9351-b21f4dd9a814)
73
+
74
+ ### 方程式模式
75
+
76
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/b792df4b-baa2-4453-83f6-6fb58784b921)
77
+
78
+ ### 开始游戏引导
79
+
80
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/80bb3c2b-d41c-44e0-8a4d-acd1845c1644)
81
+
82
+ ### 查询进度
83
+
84
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/65e28147-feef-4794-bbbb-9565c65cae36)
85
+
86
+ ### 同时猜多个
87
+
88
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/86db4fcf-9a6f-4b15-8c50-6f2d7ea017e3)
89
+
90
+ ### 拼音速查表
91
+
92
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/669c625a-9360-4d88-a0ec-01103e82d9f4)
93
+
94
+ ### 查单词
95
+
96
+ #### 英译中
97
+
98
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/c1913df7-1e1a-4324-a228-ed1679e4e330)
99
+
100
+ #### 英译英
101
+
102
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/18f7806e-641c-4135-8255-73e139e7e427)
103
+
104
+ ### 查成语
105
+
106
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/76f88dd3-e0b1-48d4-bac7-6cafb0d996c7)
107
+
108
+ ### 查询玩家记录
109
+
110
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/a14dd774-4148-4a0e-b7bc-deab8180c919)
111
+
112
+ ### 单词查找器
113
+
114
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/4bad2757-8b49-4e39-b2b3-a311e6cfc08f)
115
+
116
+ ### 排行榜引导
117
+
118
+ ![image](https://github.com/araea/koishi-plugin-wordle-game/assets/120614554/9d87c34f-353c-49ed-a885-5ac8128dbd4a)
119
+
120
+
121
+ </details>
122
+
123
+ ## 致谢
124
+
125
+ - [Koishi](https://koishi.chat/) - 机器人框架
126
+ - ly、麦神等朋友的纠错&反馈
127
+ - [Akisa](https://forum.koishi.xyz/u/akisa/summary) - Akisa 大人
128
+ - [汉典](https://www.zdic.net/) - 查找成语
129
+ - [汉兜](https://handle.antfu.me/) - 汉兜游戏样式
130
+ - [百度汉语](https://hanyu.baidu.com/) - 查找成语
131
+ - [WordFinder](https://wordword.org/) - 单词查找
132
+ - [Numberle](https://dduarte.github.io/numberle/) - 数字猜测游戏
133
+ - [词影](https://cy.surprising.studio/) - 词影游戏代码与样式
134
+ - [Numberle](https://numberle.org/) - 数学方程式猜测游戏
135
+ - [Wordle](https://www.nytimes.com/games/wordle/index.html) - 原版 Wordle 游戏网页样式
136
+ - [LewdleGame](https://www.lewdlegame.com/App) - Lewdle 模式单词列表
137
+ - [WordlePlay](https://wordleplay.com/wordle-games) - 拓展玩法/单词列表补充
138
+ - [skywind3000/ECDICT](https://github.com/skywind3000/ECDICT) - 英汉语词典数据库
139
+ - [koishi-plugin-wordle](https://www.npmjs.com/package/koishi-plugin-wordle) - Wordle 经典模式词典
140
+ - [nonebot-plugin-wordle](https://github.com/noneplugin/nonebot-plugin-wordle) - Nonebot Wordle 的词典
141
+ - [Wordle 2315 words list](https://gist.github.com/DevilXD/6ad6cc1fe37872d069a795edd51233b2#file-wordle_words-txt) - 经典 Wordle 单词列表
142
+
143
+ ## QQ 群
144
+
145
+ - 956758505
146
+
147
+ <br>
148
+
149
+ #### License
150
+
151
+ <sup>
152
+ Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
153
+ 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
154
+ </sup>
155
+
156
+ <br>
157
+
158
+ <sub>
159
+ Unless you explicitly state otherwise, any contribution intentionally submitted
160
+ for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
161
+ be dual licensed as above, without any additional terms or conditions.
162
+ </sub>