koishi-plugin-best-cave 2.7.1 → 2.7.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.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1015,7 +1015,7 @@ var AIManager = class {
|
|
|
1015
1015
|
*/
|
|
1016
1016
|
registerCommands(cave) {
|
|
1017
1017
|
cave.subcommand(".ai", "分析回声洞", { hidden: true, authority: 4 }).usage("分析尚未分析的回声洞,补全回声洞记录。").action(async ({ session }) => {
|
|
1018
|
-
if (session.channelId !== this.config.adminChannel?.split(":")) return "此指令仅限在管理群组中使用";
|
|
1018
|
+
if (session.channelId !== this.config.adminChannel?.split(":")[1]) return "此指令仅限在管理群组中使用";
|
|
1019
1019
|
try {
|
|
1020
1020
|
const allCaves = await this.ctx.database.get("cave", { status: "active" });
|
|
1021
1021
|
const analyzedCaveIds = new Set((await this.ctx.database.get("cave_meta", {})).map((meta) => meta.cave));
|