koishi-plugin-node-async-bot-all 1.4.0 → 1.4.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 +2 -2
- package/package.json +2 -1
package/lib/index.js
CHANGED
|
@@ -39,7 +39,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
39
39
|
var import_os = __toESM(require("os"));
|
|
40
40
|
|
|
41
41
|
// package.json
|
|
42
|
-
var version = "1.4.
|
|
42
|
+
var version = "1.4.1";
|
|
43
43
|
|
|
44
44
|
// res/i18n.yaml
|
|
45
45
|
var i18n_default = { rw: { failed1: "获取失败(1)。", failed2: "获取失败(2)。" }, cx: { forbidden: "此指令不允许在本群使用。", notice: "进服指南请在群公告中查看。", players: "服务器当前人数", failed: "查询失败:", timeout: "请求超时。", later: "请稍后重试。", unknown: "未知错误。" }, status: { failed: "状态获取失败。", name: "系统名称:", cpu: "CPU使用率:", memory: "内存使用率:" }, random: { sc: "生成的随机数:" }, info: { failed: "读取信息失败。" } };
|
|
@@ -276,7 +276,7 @@ function apply(ctx) {
|
|
|
276
276
|
ctx.command("status", "查询机器人状态。").action(({ session }) => {
|
|
277
277
|
return getStatus(ctx, session);
|
|
278
278
|
});
|
|
279
|
-
ctx.command("random [最小数:number] [最大数:number]", "
|
|
279
|
+
ctx.command("random [最小数:number] [最大数:number]", "随机数生成器。").usage("缺少参数时默认生成 0-10000 的随机数。").example("random 1 128 生成1到128范围的随机数").action(({ session }, min, max) => {
|
|
280
280
|
return getRandom(ctx, session, min, max);
|
|
281
281
|
});
|
|
282
282
|
ctx.command("info", "机器人信息").action(({ session }) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-node-async-bot-all",
|
|
3
3
|
"description": "NodeAsync Bot插件(自用)",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.1",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@koishijs/plugin-console": "^5.30.4",
|
|
31
|
+
"@koishijs/plugin-help": "^2.4.5",
|
|
31
32
|
"koishi": "^4.18.7"
|
|
32
33
|
}
|
|
33
34
|
}
|