koishi-plugin-wordle-game 2.3.7 → 2.3.8

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 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -3282,6 +3282,7 @@ ${gridHtml}
3282
3282
  let sentMessages = [];
3283
3283
  const msgSeqMap = {};
3284
3284
  async function sendMessage(session, message, markdownCommands, numberOfMessageButtonsPerRow, isButton) {
3285
+ isButton = isButton || false;
3285
3286
  numberOfMessageButtonsPerRow = numberOfMessageButtonsPerRow || config.numberOfMessageButtonsPerRow;
3286
3287
  const { bot, channelId } = session;
3287
3288
  let messageId;
@@ -3384,7 +3385,7 @@ ${gridHtml}
3384
3385
  }
3385
3386
  else {
3386
3387
  if (config.isTextToImageConversionEnabled) {
3387
- const lines = message.split('\n');
3388
+ const lines = message.toString().split('\n');
3388
3389
  const isOnlyImgTag = lines.length === 1 && lines[0].trim().startsWith('<img');
3389
3390
  if (isOnlyImgTag) {
3390
3391
  [messageId] = await session.send(message);
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.3.7",
4
+ "version": "2.3.8",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [