From 2e7b022f14f53dea973b7c2b95eab6eceb341a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Fri, 7 Jul 2023 17:48:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/adapter/ComWeChat.js | 2 +- plugins/adapter/GSUIDCore.js | 4 +++- plugins/adapter/go-cqhttp.js | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/adapter/ComWeChat.js b/plugins/adapter/ComWeChat.js index 21bd3ef..1111325 100644 --- a/plugins/adapter/ComWeChat.js +++ b/plugins/adapter/ComWeChat.js @@ -106,7 +106,7 @@ Bot.adapter.push(new class ComWeChatAdapter { i = { type: "mention", data: { user_id: i.data.qq }} break case "reply": - i = { type: "text", data: { text: `回复:${i.data.id}\n` }} + continue break default: i = { type: "text", data: { text: JSON.stringify(i) }} diff --git a/plugins/adapter/GSUIDCore.js b/plugins/adapter/GSUIDCore.js index 79db2c2..944e99e 100644 --- a/plugins/adapter/GSUIDCore.js +++ b/plugins/adapter/GSUIDCore.js @@ -7,7 +7,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter { constructor() { this.id = "GSUIDCore" this.name = "早柚核心" - this.path = "GSUIDCore" + this.path = this.id } toStr(data) { @@ -118,6 +118,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter { recallMsg: () => false, makeForwardMsg: Bot.makeForwardMsg, sendForwardMsg: msg => Bot.sendForwardMsg(msg => this.sendFriendMsg(i, msg), msg), + getInfo: () => i, } } @@ -148,6 +149,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter { recallMsg: () => false, makeForwardMsg: Bot.makeForwardMsg, sendForwardMsg: msg => Bot.sendForwardMsg(msg => this.sendGroupMsg(i, msg), msg), + getInfo: () => i, pickMember: user_id => this.pickMember(id, group_id, user_id), } } diff --git a/plugins/adapter/go-cqhttp.js b/plugins/adapter/go-cqhttp.js index d99b870..e6cdaa4 100644 --- a/plugins/adapter/go-cqhttp.js +++ b/plugins/adapter/go-cqhttp.js @@ -681,7 +681,7 @@ Bot.adapter.push(new class gocqhttpAdapter { logger.info(`${logger.blue(`[${data.self_id}]`)} 离线文件:[${data.user_id}] ${JSON.stringify(data.file)}`) break case "client_status": - logger.info(`${logger.blue(`[${data.self_id}]`)} 客户端:[${data.client}] ${data.online ? "上线" : "下线"}`) + logger.info(`${logger.blue(`[${data.self_id}]`)} 客户端${data.online ? "上线" : "下线"}:${JSON.stringify(data.client)}`) data.clients = (await data.sendApi("get_online_clients")).clients Bot[data.self_id].clients = data.clients break