koishi-plugin-wordle-game 2.6.0 → 2.6.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.
@@ -1,8 +1,7 @@
1
1
  # koishi-plugin-wordle-game
2
2
 
3
- [![npm](https://img.shields.io/npm/v/koishi-plugin-wordle-game?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-wordle-game)
4
-
5
- ## 简介
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)
6
5
 
7
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) 游戏插件。
8
7
 
@@ -145,6 +144,19 @@ Koishi 的 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](
145
144
 
146
145
  - 956758505
147
146
 
148
- ## License
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>
149
157
 
150
- MIT License © 2024
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>
package/lib/index.js CHANGED
@@ -2447,12 +2447,12 @@ ${image}`, `结束游戏 猜测`);
2447
2447
  return await sendMessage(session, `【@${username}】
2448
2448
  您确定您输入的是四字词语吗?`, `猜测`);
2449
2449
  }
2450
- if (gameMode === "Numberle" && !isNumericString(inputWord)) {
2450
+ if (gameMode === "Numberle" && (!isNumericString(inputWord) || inputWord.length !== guessWordLength)) {
2451
2451
  await setGuessRunningStatus(channelId, false);
2452
2452
  return await sendMessage(session, `【@${username}】
2453
2453
  您确定您输入的是 ${guessWordLength} 长度的数字吗?`, `猜测`);
2454
2454
  }
2455
- if (gameMode === "Math" && !isMathEquationValid(inputWord)) {
2455
+ if (gameMode === "Math" && (!isMathEquationValid(inputWord) || inputWord.length !== guessWordLength)) {
2456
2456
  await setGuessRunningStatus(channelId, false);
2457
2457
  return await sendMessage(session, `【@${username}】
2458
2458
  请使用+-*/=运算符和0-9之间的数字!
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-wordle-game",
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",
3
+ "description": "Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。",
4
+ "version": "2.6.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -31,34 +31,22 @@
31
31
  "chatbot",
32
32
  "koishi",
33
33
  "plugin",
34
- "wordle",
35
34
  "game",
36
- "word",
37
- "猜单词",
38
- "游戏",
39
- "小游戏",
40
35
  "guess",
36
+ "idiom",
37
+ "handle",
38
+ "lewdle",
39
+ "wordle",
40
+ "ciying",
41
+ "numberle",
41
42
  "wordle-game",
42
- "handel",
43
43
  "汉兜",
44
+ "猜单词",
44
45
  "猜成语",
45
- "成语",
46
- "idiom",
47
- "Handle",
48
46
  "猜词语",
49
- "词语",
50
- "词典",
51
- "Lewdle",
52
- "Numberle",
53
47
  "猜数字",
54
48
  "猜方程式",
55
- "数学方程式",
56
- "数字",
57
- "ciying",
58
- "cy",
59
- "词影",
60
- "填字游戏",
61
- "猜"
49
+ "词影"
62
50
  ],
63
51
  "peerDependencies": {
64
52
  "koishi": "^4.18.0"