koishi-plugin-smmcat-nai-diffusion 0.0.2 → 0.0.3
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 +2 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -309,6 +309,7 @@ function apply(ctx, config) {
|
|
|
309
309
|
const imgs = await naiDiffusion.getDrawByEntry(prompt);
|
|
310
310
|
if (!(imgs && imgs.length)) {
|
|
311
311
|
await Chat.send(session, "生图失败...");
|
|
312
|
+
use.start(session);
|
|
312
313
|
return;
|
|
313
314
|
}
|
|
314
315
|
if (config.useMd) {
|
|
@@ -349,6 +350,7 @@ ${imgs.map((item) => {
|
|
|
349
350
|
});
|
|
350
351
|
if (!(imgs && imgs.length)) {
|
|
351
352
|
await Chat.send(session, "生图失败...");
|
|
353
|
+
use.start(session);
|
|
352
354
|
return;
|
|
353
355
|
}
|
|
354
356
|
if (config.useMd) {
|