koishi-plugin-echo-cave 1.10.1 → 1.10.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.
- package/lib/index.cjs +7 -7
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -372,7 +372,7 @@ function apply(ctx, cfg) {
|
|
|
372
372
|
}
|
|
373
373
|
async function getCaveListByUser(ctx, session) {
|
|
374
374
|
if (!session.guildId) {
|
|
375
|
-
return session.text("general.privateChatReminder");
|
|
375
|
+
return session.text("echo-cave.general.privateChatReminder");
|
|
376
376
|
}
|
|
377
377
|
const { userId, channelId } = session;
|
|
378
378
|
const caves = await ctx.database.get("echo_cave", {
|
|
@@ -390,7 +390,7 @@ async function getCaveListByUser(ctx, session) {
|
|
|
390
390
|
}
|
|
391
391
|
async function getCaveListByOriginUser(ctx, session) {
|
|
392
392
|
if (!session.guildId) {
|
|
393
|
-
return session.text("general.privateChatReminder");
|
|
393
|
+
return session.text("echo-cave.general.privateChatReminder");
|
|
394
394
|
}
|
|
395
395
|
const { userId, channelId } = session;
|
|
396
396
|
const caves = await ctx.database.get("echo_cave", {
|
|
@@ -408,7 +408,7 @@ async function getCaveListByOriginUser(ctx, session) {
|
|
|
408
408
|
}
|
|
409
409
|
async function getCave(ctx, session, id) {
|
|
410
410
|
if (!session.guildId) {
|
|
411
|
-
return session.text("general.privateChatReminder");
|
|
411
|
+
return session.text("echo-cave.general.privateChatReminder");
|
|
412
412
|
}
|
|
413
413
|
let caveMsg;
|
|
414
414
|
const { channelId } = session;
|
|
@@ -426,7 +426,7 @@ async function getCave(ctx, session, id) {
|
|
|
426
426
|
channelId
|
|
427
427
|
});
|
|
428
428
|
if (caves.length === 0) {
|
|
429
|
-
return session.text("general.noMsgWithId");
|
|
429
|
+
return session.text("echo-cave.general.noMsgWithId");
|
|
430
430
|
}
|
|
431
431
|
caveMsg = caves[0];
|
|
432
432
|
}
|
|
@@ -434,14 +434,14 @@ async function getCave(ctx, session, id) {
|
|
|
434
434
|
}
|
|
435
435
|
async function deleteCave(ctx, session, cfg, id) {
|
|
436
436
|
if (!session.guildId) {
|
|
437
|
-
return session.text("general.privateChatReminder");
|
|
437
|
+
return session.text("echo-cave.general.privateChatReminder");
|
|
438
438
|
}
|
|
439
439
|
if (!id) {
|
|
440
440
|
return session.text(".noIdProvided");
|
|
441
441
|
}
|
|
442
442
|
const caves = await ctx.database.get("echo_cave", id);
|
|
443
443
|
if (caves.length === 0) {
|
|
444
|
-
return session.text("general.noMsgWithId");
|
|
444
|
+
return session.text("echo-cave.general.noMsgWithId");
|
|
445
445
|
}
|
|
446
446
|
const caveMsg = caves[0];
|
|
447
447
|
const currentUserId = session.userId;
|
|
@@ -473,7 +473,7 @@ async function deleteCave(ctx, session, cfg, id) {
|
|
|
473
473
|
}
|
|
474
474
|
async function addCave(ctx, session) {
|
|
475
475
|
if (!session.guildId) {
|
|
476
|
-
return session.text("general.privateChatReminder");
|
|
476
|
+
return session.text("echo-cave.general.privateChatReminder");
|
|
477
477
|
}
|
|
478
478
|
if (!session.quote) {
|
|
479
479
|
return session.text(".noMsgQuoted");
|