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.
- package/lib/index.js +2 -2
- package/package.json +65 -62
- 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
|
-
|
|
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 (
|
|
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
|
-
"main": "lib/index.js",
|
|
6
|
-
"typings": "lib/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"lib",
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
]
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"wordle
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"koishi
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
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
|
-
|
|
1
|
+
koishi-plugin-wordle-game
|
|
2
|
+
========================
|
|
2
3
|
|
|
3
|
-
[
|
|
4
|
-
[
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
162
|
+
<br>
|
|
157
163
|
|
|
158
|
-
|
|
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>
|