koishi-plugin-wordle-game 2.6.5 → 2.6.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.
Files changed (3) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +65 -62
  3. package/readme.md +19 -9
package/lib/index.js CHANGED
@@ -11988,7 +11988,7 @@ var Config = import_koishi.Schema.intersect([
11988
11988
  ]),
11989
11989
  import_koishi.Schema.object({
11990
11990
  retractDelay: import_koishi.Schema.number().min(0).default(0).description(
11991
- `自动撤回等待的时间,单位是秒。值为 0 时不启用自动撤回功能。`
11991
+ `撤回上一条消息的等待时间,单位是秒。值为 0 时不启用自动撤回功能。`
11992
11992
  ),
11993
11993
  imageType: import_koishi.Schema.union(["png", "jpeg", "webp"]).default("png").description(`发送的图片类型。`),
11994
11994
  isTextToImageConversionEnabled: import_koishi.Schema.boolean().default(false).description(
@@ -16652,7 +16652,7 @@ ${gridHtml}
16652
16652
  if (prevMessage) {
16653
16653
  const timePassed = Date.now() - prevMessage.timestamp;
16654
16654
  const remainingDelay = config.retractDelay * 1e3 - timePassed;
16655
- if (remainingDelay > 0 && timePassed < 118e3) {
16655
+ if (timePassed < 118e3) {
16656
16656
  setTimeout(async () => {
16657
16657
  try {
16658
16658
  await bot.deleteMessage(channelId, prevMessage.id);
package/package.json CHANGED
@@ -1,62 +1,65 @@
1
- {
2
- "name": "koishi-plugin-wordle-game",
3
- "description": "Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。",
4
- "version": "2.6.5",
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
- "monetary",
15
- "database",
16
- "puppeteer"
17
- ],
18
- "optional": [
19
- "markdownToImage"
20
- ]
21
- }
22
- },
23
- "license": "MIT OR Apache-2.0",
24
- "author": "Nawyjx <3373167460@qq.com>",
25
- "homepage": "https://www.npmjs.com/package/koishi-plugin-wordle-game?activeTab=readme",
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/araea/koishi-plugin-wordle-game.git"
29
- },
30
- "keywords": [
31
- "chatbot",
32
- "koishi",
33
- "plugin",
34
- "game",
35
- "guess",
36
- "idiom",
37
- "handle",
38
- "lewdle",
39
- "wordle",
40
- "ciying",
41
- "numberle",
42
- "wordle-game",
43
- "汉兜",
44
- "猜单词",
45
- "猜成语",
46
- "猜词语",
47
- "猜数字",
48
- "猜方程式",
49
- "词影"
50
- ],
51
- "peerDependencies": {
52
- "koishi": "^4.18.0"
53
- },
54
- "devDependencies": {
55
- "koishi-plugin-markdown-to-image-service": "^1.2.1",
56
- "koishi-plugin-monetary": "^0.1.3",
57
- "koishi-plugin-puppeteer": "^3.9.0"
58
- },
59
- "dependencies": {
60
- "cheerio": "^1.0.0"
61
- }
62
- }
1
+ {
2
+ "name": "koishi-plugin-wordle-game",
3
+ "description": "Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。",
4
+ "version": "2.6.7",
5
+ "main": "lib/index.js",
6
+ "typings": "lib/index.d.ts",
7
+ "files": [
8
+ "lib",
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "yakumo:after:esbuild": "node scripts/copy-assets.mjs"
13
+ },
14
+ "koishi": {
15
+ "service": {
16
+ "required": [
17
+ "monetary",
18
+ "database",
19
+ "puppeteer"
20
+ ],
21
+ "optional": [
22
+ "markdownToImage"
23
+ ]
24
+ }
25
+ },
26
+ "license": "MIT OR Apache-2.0",
27
+ "author": "Nawyjx <3373167460@qq.com>",
28
+ "homepage": "https://www.npmjs.com/package/koishi-plugin-wordle-game?activeTab=readme",
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/araea/koishi-plugin-wordle-game.git"
32
+ },
33
+ "keywords": [
34
+ "chatbot",
35
+ "koishi",
36
+ "plugin",
37
+ "game",
38
+ "guess",
39
+ "idiom",
40
+ "handle",
41
+ "lewdle",
42
+ "wordle",
43
+ "ciying",
44
+ "numberle",
45
+ "wordle-game",
46
+ "汉兜",
47
+ "猜单词",
48
+ "猜成语",
49
+ "猜词语",
50
+ "猜数字",
51
+ "猜方程式",
52
+ "词影"
53
+ ],
54
+ "peerDependencies": {
55
+ "koishi": "^4.18.9"
56
+ },
57
+ "devDependencies": {
58
+ "koishi-plugin-markdown-to-image-service": "^1.2.5",
59
+ "koishi-plugin-monetary": "^0.1.3",
60
+ "koishi-plugin-puppeteer": "^3.9.0"
61
+ },
62
+ "dependencies": {
63
+ "cheerio": "^1.1.2"
64
+ }
65
+ }
package/readme.md CHANGED
@@ -1,11 +1,12 @@
1
- # koishi-plugin-wordle-game
1
+ koishi-plugin-wordle-game
2
+ ========================
2
3
 
3
- [![github](https://img.shields.io/badge/github-araea/wordle_game-8da0cb?style=for-the-badge&labelColor=555555&logo=github)](https://github.com/araea/koishi-plugin-wordle-game)
4
- [![npm](https://img.shields.io/npm/v/koishi-plugin-wordle-game.svg?style=for-the-badge&color=fc8d62&logo=npm)](https://www.npmjs.com/package/koishi-plugin-wordle-game)
4
+ [<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)
5
+ [<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
 
6
- ---
7
+ Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。
7
8
 
8
- Koishi 插件,支持以下游戏:
9
+ 支持以下游戏:
9
10
 
10
11
  - [Wordle](https://www.nytimes.com/games/wordle/index.html)
11
12
  - [汉兜](https://handle.antfu.me/)
@@ -149,10 +150,19 @@ Koishi 插件,支持以下游戏:
149
150
 
150
151
  - `956758505`
151
152
 
152
- ---
153
+ <br>
154
+
155
+ #### License
153
156
 
154
- ### License
157
+ <sup>
158
+ Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
159
+ 2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
160
+ </sup>
155
161
 
156
- _Licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT license](LICENSE-MIT) at your option._
162
+ <br>
157
163
 
158
- _Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions._
164
+ <sub>
165
+ Unless you explicitly state otherwise, any contribution intentionally submitted
166
+ for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
167
+ be dual licensed as above, without any additional terms or conditions.
168
+ </sub>