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.
- package/lib/index.js +0 -5
- 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: "等待超时" };
|