koishi-plugin-best-cave 2.1.0 → 2.1.1
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
|
@@ -576,7 +576,7 @@ function apply(ctx, config) {
|
|
|
576
576
|
const profileManager = config.enableProfile ? new ProfileManager(ctx) : null;
|
|
577
577
|
const dataManager = config.enableIO ? new DataManager(ctx, config, fileManager, logger) : null;
|
|
578
578
|
const reviewManager = config.enableReview ? new ReviewManager(ctx, config, fileManager, logger) : null;
|
|
579
|
-
const cave = ctx.command("cave", "回声洞").option("add", "-a <content:text>").option("view", "-g <id:posint>").option("delete", "-r <id:posint>").option("list", "-l").usage("随机抽取一条已添加的回声洞。").action(async ({ session, options }) => {
|
|
579
|
+
const cave = ctx.command("cave", "回声洞").option("add", "-a <content:text> 添加回声洞").option("view", "-g <id:posint> 查看指定回声洞").option("delete", "-r <id:posint> 删除指定回声洞").option("list", "-l 查询投稿统计").usage("随机抽取一条已添加的回声洞。").action(async ({ session, options }) => {
|
|
580
580
|
if (options.add) return session.execute(`cave.add ${options.add}`);
|
|
581
581
|
if (options.view) return session.execute(`cave.view ${options.view}`);
|
|
582
582
|
if (options.delete) return session.execute(`cave.del ${options.delete}`);
|