koishi-plugin-wordle-game 2.6.5 → 2.6.6

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 (2) hide show
  1. package/lib/index.js +2 -2
  2. package/package.json +4 -4
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,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-wordle-game",
3
3
  "description": "Koishi 的 Wordle | 汉兜 | 词影 | Numberle | Math | Lewdle 游戏插件。",
4
- "version": "2.6.5",
4
+ "version": "2.6.6",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -49,14 +49,14 @@
49
49
  "词影"
50
50
  ],
51
51
  "peerDependencies": {
52
- "koishi": "^4.18.0"
52
+ "koishi": "^4.18.8"
53
53
  },
54
54
  "devDependencies": {
55
- "koishi-plugin-markdown-to-image-service": "^1.2.1",
55
+ "koishi-plugin-markdown-to-image-service": "^1.2.5",
56
56
  "koishi-plugin-monetary": "^0.1.3",
57
57
  "koishi-plugin-puppeteer": "^3.9.0"
58
58
  },
59
59
  "dependencies": {
60
- "cheerio": "^1.0.0"
60
+ "cheerio": "^1.1.2"
61
61
  }
62
62
  }