koishi-plugin-echo-cave 1.10.2 → 1.10.4

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 +3 -3
  2. package/package.json +1 -1
package/lib/index.cjs CHANGED
@@ -167,7 +167,8 @@ async function sendCaveMsg(ctx, session, caveMsg) {
167
167
  id: caveMsg.id.toString(),
168
168
  date,
169
169
  originName,
170
- userName
170
+ userName,
171
+ nl: "\n"
171
172
  };
172
173
  const TEMPLATE_COUNT = 5;
173
174
  if (caveMsg.type === "forward") {
@@ -354,8 +355,7 @@ function apply(ctx, cfg) {
354
355
  },
355
356
  {
356
357
  primary: "id",
357
- autoInc: true,
358
- unique: ["content"]
358
+ autoInc: true
359
359
  }
360
360
  );
361
361
  ctx.command("cave [id:number]").action(
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.10.2",
4
+ "version": "1.10.4",
5
5
  "main": "lib/index.cjs",
6
6
  "typings": "lib/index.d.ts",
7
7
  "type": "module",