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