koishi-plugin-aka-ai-generator 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/lib/index.js +0 -5
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1254,11 +1254,6 @@ function apply(ctx, config) {
1254
1254
  if (typeof imgParam === "string" && imgParam.trim()) {
1255
1255
  return { images: [], text: imgParam.trim() };
1256
1256
  }
1257
- if (session.content) {
1258
- const elements2 = import_koishi.h.parse(session.content);
1259
- const text2 = import_koishi.h.select(elements2, "text").map((e) => e.attrs.content).join(" ").trim();
1260
- if (text2) return { images: [], text: text2 };
1261
- }
1262
1257
  await session.send("请输入画面描述");
1263
1258
  const msg = await session.prompt(3e4);
1264
1259
  if (!msg) return { error: "等待超时" };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-aka-ai-generator",
3
3
  "description": "自用AI生成插件(GPTGod & Yunwu)",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [