细节优化
This commit is contained in:
		
							parent
							
								
									d15d915bf6
								
							
						
					
					
						commit
						2e7b022f14
					
				| 
						 | 
				
			
			@ -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) }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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),
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue