koishi-plugin-echo-cave 1.26.0 → 1.26.2

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.cjs +2 -1
  2. package/package.json +3 -3
package/lib/index.cjs CHANGED
@@ -494,7 +494,8 @@ ${session.text(".selectInstruction")}`;
494
494
  selectedUsersWithNames = await userSelectionPromise;
495
495
  }
496
496
  const finalParsedUserIds = selectedUsersWithNames.map((user) => user.userId);
497
- const relatedUsersFormatted = selectedUsersWithNames.map((user) => user.nickname).join(", ");
497
+ const originName = await getUserName(ctx, session, quote.user.id);
498
+ const relatedUsersFormatted = selectedUsersWithNames.length !== 0 ? selectedUsersWithNames.map((user) => user.nickname).join(", ") : originName;
498
499
  try {
499
500
  const result = await ctx.database.create("echo_cave_v2", {
500
501
  channelId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-echo-cave",
3
3
  "description": "Group echo cave",
4
- "version": "1.26.0",
4
+ "version": "1.26.2",
5
5
  "main": "lib/index.cjs",
6
6
  "typings": "lib/index.d.ts",
7
7
  "type": "module",
@@ -49,8 +49,8 @@
49
49
  "@types/node": "^24.10.4",
50
50
  "conventional-changelog-conventionalcommits": "^9.1.0",
51
51
  "esbuild": "^0.27.2",
52
- "oxfmt": "^0.20.0",
53
- "oxlint": "^1.35.0",
52
+ "oxfmt": "^0.21.0",
53
+ "oxlint": "^1.36.0",
54
54
  "semantic-release": "^25.0.2",
55
55
  "typescript": "^5.9.3"
56
56
  }