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 +3 -1
- package/package.json +1 -1
- package/readme.md +1 -0
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
|
|
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
package/readme.md
CHANGED