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.
Files changed (2) hide show
  1. package/lib/index.js +2 -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}").required().description("自定义文本"),
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 = 1;
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-best-cave",
3
3
  "description": "最强大的回声洞现已重构完成啦!注意数据格式需要使用脚本转换哦~",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "contributors": [
6
6
  "Yis_Rime <yis_rime@outlook.com>"
7
7
  ],