koishi-plugin-starfx-bot 0.11.0 → 0.11.1

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 CHANGED
@@ -504,7 +504,9 @@ function apply(ctx, cfg) {
504
504
  const p = session.send("图片处理中请稍等...");
505
505
  console.log(param);
506
506
  const drawConfig = await handleBanGDreamConfig(options);
507
- const imageBase64 = await drawBanGDream(await getImageSrc(session, param), drawConfig);
507
+ const imgSrc = await getImageSrc(session, param);
508
+ if (!imgSrc?.length) return "输入无效";
509
+ const imageBase64 = await drawBanGDream(imgSrc, drawConfig);
508
510
  await p;
509
511
  return import_koishi2.h.image(imageBase64);
510
512
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "contributors": [
5
5
  "StarFreedomX <starfreedomx@outlook.com>"
6
6
  ],
7
- "version": "0.11.0",
7
+ "version": "0.11.1",
8
8
  "main": "lib/index.js",
9
9
  "typings": "lib/index.d.ts",
10
10
  "files": [
package/readme.md CHANGED
@@ -86,3 +86,4 @@ StarFreedomX机器人的小功能,自用
86
86
  | `0.10.1` | 修复随机数骰子功能输入负数报错的bug |
87
87
  | `0.10.2` | 增加roll功能的人称变化 |
88
88
  | `0.11.0` | 增加适配于onebot(主要是qq)的撤回功能 |
89
+ | `0.11.1` | 修复bdbd传参错误问题 |