koishi-plugin-wordle-game 2.5.8 → 2.5.9

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 +3 -1
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -1657,7 +1657,9 @@ async function apply(ctx, config) {
1657
1657
  if (!config.enableWordGuessMiddleware) {
1658
1658
  return await next();
1659
1659
  }
1660
- content2 = content2?.trim();
1660
+ if (content2) {
1661
+ content2 = `${import_koishi.h.select(content2, "text")}`.trim();
1662
+ }
1661
1663
  const gameInfo = await getGameInfo(channelId);
1662
1664
  if (!gameInfo.isStarted) {
1663
1665
  return await next();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-wordle-game",
3
3
  "description": "欢迎来到 [Wordle](https://www.nytimes.com/games/wordle/index.html) | [汉兜](https://handle.antfu.me/) | [词影](https://cy.surprising.studio/) |... 猜单词|猜成语|猜数字|猜数学方程式|... 的小游戏,支持QQ官方MD模板,且包含多种词库、主题、游戏设置和排行榜系统等。",
4
- "version": "2.5.8",
4
+ "version": "2.5.9",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -61,12 +61,12 @@
61
61
  "猜"
62
62
  ],
63
63
  "peerDependencies": {
64
- "koishi": "^4.17.11"
64
+ "koishi": "^4.17.12"
65
65
  },
66
66
  "devDependencies": {
67
67
  "koishi-plugin-markdown-to-image-service": "^1.2.1",
68
68
  "koishi-plugin-monetary": "^0.1.3",
69
- "koishi-plugin-puppeteer": "^3.8.4"
69
+ "koishi-plugin-puppeteer": "^3.9.0"
70
70
  },
71
71
  "dependencies": {
72
72
  "cheerio": "^1.0.0"