koishi-plugin-cocoyyy-console 1.0.14-beta.2 → 1.0.14-beta.4
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 +7 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1263,10 +1263,13 @@ ${list.map((item) => (0, import_koishi8.h)("at", { id: item })).join(",")}`;
|
|
|
1263
1263
|
if (!exec.result)
|
|
1264
1264
|
return `${target_uid}不在当前群聊中`;
|
|
1265
1265
|
}
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1266
|
+
logger.info(`[rbqinstead] info: input_uid: ${session.uid}, sourceId: ${source_uid}, targetId: ${target_uid}, botId: ${session.selfId}`);
|
|
1267
|
+
if (target_uid == session.selfId) {
|
|
1268
|
+
let new_target = session.uid;
|
|
1269
|
+
exec = await instead_person(session.guildId, source_uid, new_target);
|
|
1270
|
+
if (!exec.result)
|
|
1271
|
+
return `替换rbq失败:${exec.error}`;
|
|
1272
|
+
return `还想让我变rbq?进去吧你,已替换rbq:${(0, import_koishi8.h)("at", { id: source_uid })} -> ${(0, import_koishi8.h)("at", { id: new_target })}`;
|
|
1270
1273
|
}
|
|
1271
1274
|
exec = await instead_person(session.guildId, source_uid, target_uid);
|
|
1272
1275
|
if (!exec.result)
|