细节优化

This commit is contained in:
🌌 2023-07-07 17:48:53 +08:00
parent d15d915bf6
commit 2e7b022f14
3 changed files with 5 additions and 3 deletions

View File

@ -106,7 +106,7 @@ Bot.adapter.push(new class ComWeChatAdapter {
i = { type: "mention", data: { user_id: i.data.qq }} i = { type: "mention", data: { user_id: i.data.qq }}
break break
case "reply": case "reply":
i = { type: "text", data: { text: `回复:${i.data.id}\n` }} continue
break break
default: default:
i = { type: "text", data: { text: JSON.stringify(i) }} i = { type: "text", data: { text: JSON.stringify(i) }}

View File

@ -7,7 +7,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter {
constructor() { constructor() {
this.id = "GSUIDCore" this.id = "GSUIDCore"
this.name = "早柚核心" this.name = "早柚核心"
this.path = "GSUIDCore" this.path = this.id
} }
toStr(data) { toStr(data) {
@ -118,6 +118,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter {
recallMsg: () => false, recallMsg: () => false,
makeForwardMsg: Bot.makeForwardMsg, makeForwardMsg: Bot.makeForwardMsg,
sendForwardMsg: msg => Bot.sendForwardMsg(msg => this.sendFriendMsg(i, msg), msg), sendForwardMsg: msg => Bot.sendForwardMsg(msg => this.sendFriendMsg(i, msg), msg),
getInfo: () => i,
} }
} }
@ -148,6 +149,7 @@ Bot.adapter.push(new class GSUIDCoreAdapter {
recallMsg: () => false, recallMsg: () => false,
makeForwardMsg: Bot.makeForwardMsg, makeForwardMsg: Bot.makeForwardMsg,
sendForwardMsg: msg => Bot.sendForwardMsg(msg => this.sendGroupMsg(i, msg), msg), sendForwardMsg: msg => Bot.sendForwardMsg(msg => this.sendGroupMsg(i, msg), msg),
getInfo: () => i,
pickMember: user_id => this.pickMember(id, group_id, user_id), pickMember: user_id => this.pickMember(id, group_id, user_id),
} }
} }

View File

@ -681,7 +681,7 @@ Bot.adapter.push(new class gocqhttpAdapter {
logger.info(`${logger.blue(`[${data.self_id}]`)} 离线文件:[${data.user_id}] ${JSON.stringify(data.file)}`) logger.info(`${logger.blue(`[${data.self_id}]`)} 离线文件:[${data.user_id}] ${JSON.stringify(data.file)}`)
break break
case "client_status": 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 data.clients = (await data.sendApi("get_online_clients")).clients
Bot[data.self_id].clients = data.clients Bot[data.self_id].clients = data.clients
break break