From 4be73b2834d3c6a70b641ecac9a035a8fb0b6c45 Mon Sep 17 00:00:00 2001 From: Mrs4s <1844812067@qq.com> Date: Mon, 3 Aug 2020 00:17:34 +0800 Subject: [PATCH] fix quick operation no response without at_sender. --- coolq/api.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/coolq/api.go b/coolq/api.go index e3d4bb8..8629285 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -362,12 +362,14 @@ func (bot *CQBot) CQHandleQuickOperation(context, operation gjson.Result) MSG { msgType := context.Get("message_type").Str reply := operation.Get("reply") if reply.Exists() { - at := true - if operation.Get("at_sender").Exists() { - at = operation.Get("at_sender").Bool() - } + /* + at := true + if operation.Get("at_sender").Exists() { + at = operation.Get("at_sender").Bool() + } + */ // TODO: 处理at字段 - if msgType == "group" && at { + if msgType == "group" { bot.CQSendGroupMessage(context.Get("group_id").Int(), reply) } if msgType == "private" {