koishi-plugin-node-async-bot-all 2.28.1 → 2.29.0
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 +12 -12
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -939,7 +939,7 @@ async function getUse(ctx, session, qq, desc) {
|
|
|
939
939
|
__name(getUse, "getUse");
|
|
940
940
|
|
|
941
941
|
// package.json
|
|
942
|
-
var version = "2.
|
|
942
|
+
var version = "2.29.0";
|
|
943
943
|
|
|
944
944
|
// src/index.ts
|
|
945
945
|
var inject = ["database", "installer", "puppeteer", "cron"];
|
|
@@ -1064,13 +1064,13 @@ ${import_koishi3.h.image(outMsg.data, "image/png")}`);
|
|
|
1064
1064
|
await startReaction(session);
|
|
1065
1065
|
const cx = await getServer(ctx, session);
|
|
1066
1066
|
if (cx["success"] == 0) {
|
|
1067
|
-
session?.send(session?.text(".msg", cx));
|
|
1067
|
+
await session?.send(session?.text(".msg", cx));
|
|
1068
1068
|
await endReaction(session);
|
|
1069
1069
|
} else if (cx["success"] == 1) {
|
|
1070
|
-
session?.send(session?.text(".forbidden", cx));
|
|
1070
|
+
await session?.send(session?.text(".forbidden", cx));
|
|
1071
1071
|
await endReactionFailed(session);
|
|
1072
1072
|
} else if (cx["success"] == 2) {
|
|
1073
|
-
session?.send(session?.text(".failed", cx));
|
|
1073
|
+
await session?.send(session?.text(".failed", cx));
|
|
1074
1074
|
await endReactionFailed(session);
|
|
1075
1075
|
}
|
|
1076
1076
|
});
|
|
@@ -1078,27 +1078,27 @@ ${import_koishi3.h.image(outMsg.data, "image/png")}`);
|
|
|
1078
1078
|
await startReaction(session);
|
|
1079
1079
|
const status2 = await getStatus(ctx, session);
|
|
1080
1080
|
if (status2["success"] == 0) {
|
|
1081
|
-
session?.send(session?.text(".msg", status2));
|
|
1081
|
+
await session?.send(session?.text(".msg", status2));
|
|
1082
1082
|
await endReaction(session);
|
|
1083
1083
|
} else {
|
|
1084
|
-
session?.send(session?.text(".failed", status2));
|
|
1084
|
+
await session?.send(session?.text(".failed", status2));
|
|
1085
1085
|
await endReactionFailed(session);
|
|
1086
1086
|
}
|
|
1087
1087
|
});
|
|
1088
1088
|
na.subcommand("random [最小数:number] [最大数:number]").alias("随机数").action(async ({ session }, min, max) => {
|
|
1089
1089
|
await startReaction(session);
|
|
1090
1090
|
const random2 = await getRandom(ctx, session, min, max);
|
|
1091
|
-
session?.send(session?.text(".msg", random2));
|
|
1091
|
+
await session?.send(session?.text(".msg", random2));
|
|
1092
1092
|
await endReaction(session);
|
|
1093
1093
|
});
|
|
1094
1094
|
na.subcommand("info").action(async ({ session }) => {
|
|
1095
1095
|
await startReaction(session);
|
|
1096
1096
|
const info = await getInfo(ctx, session);
|
|
1097
1097
|
if (info["success"] == 0) {
|
|
1098
|
-
session?.send(session?.text(".msg", info));
|
|
1098
|
+
await session?.send(session?.text(".msg", info));
|
|
1099
1099
|
await endReaction(session);
|
|
1100
1100
|
} else {
|
|
1101
|
-
session?.send(session?.text(".failed", info));
|
|
1101
|
+
await session?.send(session?.text(".failed", info));
|
|
1102
1102
|
await endReactionFailed(session);
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
@@ -1106,10 +1106,10 @@ ${import_koishi3.h.image(outMsg.data, "image/png")}`);
|
|
|
1106
1106
|
await startReaction(session);
|
|
1107
1107
|
const rw = await getRandomWord(ctx, session);
|
|
1108
1108
|
if (rw["success"] == 0) {
|
|
1109
|
-
session?.send(session?.text(".msg", rw));
|
|
1109
|
+
await session?.send(session?.text(".msg", rw));
|
|
1110
1110
|
await endReaction(session);
|
|
1111
1111
|
} else {
|
|
1112
|
-
session?.send(session?.text(".failed", rw));
|
|
1112
|
+
await session?.send(session?.text(".failed", rw));
|
|
1113
1113
|
await endReactionFailed(session);
|
|
1114
1114
|
}
|
|
1115
1115
|
});
|
|
@@ -1121,7 +1121,7 @@ ${import_koishi3.h.image(outMsg.data, "image/png")}`);
|
|
|
1121
1121
|
na.subcommand("centerServerTest").alias("测测中心服务器").action(async ({ session }) => {
|
|
1122
1122
|
await startReaction(session);
|
|
1123
1123
|
const msg = await centerServerTest(ctx, session);
|
|
1124
|
-
session?.send(session?.text(msg.success, msg.data));
|
|
1124
|
+
await session?.send(session?.text(msg.success, msg.data));
|
|
1125
1125
|
await endReaction(session);
|
|
1126
1126
|
});
|
|
1127
1127
|
na.subcommand("meme [序号:posint]").alias("memes").action(async ({ session }, count) => {
|