koishi-plugin-luogu-saver-bot 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. package/lib/index.js +5 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -436,6 +436,11 @@ function apply(ctx, config = {}) {
436
436
  page.close();
437
437
  }
438
438
  });
439
+ ctx.command("echo-censor <text>", "测试文本审查服务").action(async ({ options }, text) => {
440
+ if (!text) return "请提供文本";
441
+ const result = await censoring(ctx, text);
442
+ return result;
443
+ });
439
444
  }
440
445
  __name(apply, "apply");
441
446
  // Annotate the CommonJS export names for ESM import in node:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-luogu-saver-bot",
3
3
  "description": "洛谷保存站机器人",
4
- "version": "0.1.8",
4
+ "version": "0.1.9",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [