Commit 4be73b28 authored by Mrs4s's avatar Mrs4s

fix quick operation no response without at_sender.

parent e2227d58
...@@ -362,12 +362,14 @@ func (bot *CQBot) CQHandleQuickOperation(context, operation gjson.Result) MSG { ...@@ -362,12 +362,14 @@ func (bot *CQBot) CQHandleQuickOperation(context, operation gjson.Result) MSG {
msgType := context.Get("message_type").Str msgType := context.Get("message_type").Str
reply := operation.Get("reply") reply := operation.Get("reply")
if reply.Exists() { if reply.Exists() {
at := true /*
if operation.Get("at_sender").Exists() { at := true
at = operation.Get("at_sender").Bool() if operation.Get("at_sender").Exists() {
} at = operation.Get("at_sender").Bool()
}
*/
// TODO: 处理at字段 // TODO: 处理at字段
if msgType == "group" && at { if msgType == "group" {
bot.CQSendGroupMessage(context.Get("group_id").Int(), reply) bot.CQSendGroupMessage(context.Get("group_id").Int(), reply)
} }
if msgType == "private" { if msgType == "private" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment