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.
- package/lib/index.cjs +3 -3
- 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(
|