koishi-plugin-cocoyyy-console 1.0.14-beta.3 → 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.
Files changed (2) hide show
  1. package/lib/index.js +7 -4
  2. 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
- logger.info(`[rbqinstead] input_uid: ${session.uid}, sourceId: ${source_uid}, targetId: ${target_uid}, botId: ${session.selfId}`);
1267
- if (session.selfId == target_uid) {
1268
- return `还想让我变rbq?进去吧你,已替换rbq:
1269
- ${(0, import_koishi8.h)("at", { id: source_uid })} -> ${(0, import_koishi8.h)("at", { id: session.uid })}`;
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)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-cocoyyy-console",
3
3
  "description": "自用koishi插件,功能包含复读,记录黑历史,*人等",
4
- "version": "1.0.14-beta.3",
4
+ "version": "1.0.14-beta.4",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "contributors": [