koishi-plugin-best-cave 2.0.2 → 2.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 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -637,7 +637,7 @@ var Config = import_koishi3.Schema.intersect([
|
|
|
637
637
|
perChannel: import_koishi3.Schema.boolean().default(false).description("启用分群模式"),
|
|
638
638
|
enableProfile: import_koishi3.Schema.boolean().default(false).description("启用自定义昵称"),
|
|
639
639
|
enableIO: import_koishi3.Schema.boolean().default(false).description("启用导入导出"),
|
|
640
|
-
caveFormat: import_koishi3.Schema.string().default("回声洞 ——({id})|—— {name}").
|
|
640
|
+
caveFormat: import_koishi3.Schema.string().default("回声洞 ——({id})|—— {name}").description("自定义文本"),
|
|
641
641
|
adminUsers: import_koishi3.Schema.array(import_koishi3.Schema.string()).default([]).description("管理员 ID 列表")
|
|
642
642
|
}).description("基础配置"),
|
|
643
643
|
import_koishi3.Schema.object({
|
|
@@ -719,7 +719,7 @@ function apply(ctx, config) {
|
|
|
719
719
|
const scopeQuery = getScopeQuery(session, config);
|
|
720
720
|
const newId = await getNextCaveId(ctx, scopeQuery);
|
|
721
721
|
const finalElementsForDb = [];
|
|
722
|
-
let mediaIndex =
|
|
722
|
+
let mediaIndex = 0;
|
|
723
723
|
async function traverseAndProcess(elements) {
|
|
724
724
|
for (const el of elements) {
|
|
725
725
|
const elementType = el.type === "image" ? "img" : el.type;
|