koishi-plugin-echo-cave 1.16.7 → 1.16.8
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 +2 -8
- package/package.json +1 -1
package/lib/index.cjs
CHANGED
|
@@ -169,12 +169,6 @@ function createTextMsg(content) {
|
|
|
169
169
|
function parseUserIds(userIds) {
|
|
170
170
|
const parsedUserIds = [];
|
|
171
171
|
for (const userIdStr of userIds) {
|
|
172
|
-
if (userIdStr === "all") {
|
|
173
|
-
return {
|
|
174
|
-
parsedUserIds: [],
|
|
175
|
-
error: "invalid_all_mention"
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
172
|
try {
|
|
179
173
|
const cqCode = import_koishi_plugin_adapter_onebot.CQCode.from(userIdStr);
|
|
180
174
|
if (cqCode.type === "at") {
|
|
@@ -592,7 +586,7 @@ function apply(ctx, cfg) {
|
|
|
592
586
|
ctx.command("cave [id:number]").action(
|
|
593
587
|
async ({ session }, id) => await getCave(ctx, session, cfg, id)
|
|
594
588
|
);
|
|
595
|
-
ctx.command("cave.echo [...userIds:
|
|
589
|
+
ctx.command("cave.echo [...userIds:user]").action(
|
|
596
590
|
async ({ session }, ...userIds) => await addCave(ctx, session, cfg, userIds)
|
|
597
591
|
);
|
|
598
592
|
ctx.command("cave.wipe <id:number>").action(
|
|
@@ -602,7 +596,7 @@ function apply(ctx, cfg) {
|
|
|
602
596
|
ctx.command("cave.trace").action(
|
|
603
597
|
async ({ session }) => await getCaveListByOriginUser(ctx, session)
|
|
604
598
|
);
|
|
605
|
-
ctx.command("cave.bind <id:number> <...userIds:
|
|
599
|
+
ctx.command("cave.bind <id:number> <...userIds:user>", { authority: 4 }).action(
|
|
606
600
|
async ({ session }, id, ...userIds) => await bindUsersToCave(ctx, session, id, userIds)
|
|
607
601
|
);
|
|
608
602
|
}
|