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.
- package/lib/index.js +5 -0
- 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:
|