koishi-plugin-smmcat-nai-diffusion 0.0.2 → 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.
Files changed (2) hide show
  1. package/lib/index.js +2 -0
  2. 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.clear(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.clear(session);
352
354
  return;
353
355
  }
354
356
  if (config.useMd) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-nai-diffusion",
3
3
  "description": "来自 tuercha.com 公益站的绘图服务",
4
- "version": "0.0.2",
4
+ "version": "0.0.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [