From a36008847ca9177c2023958b63c1f46b2293fe91 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Sat, 8 Mar 2025 16:57:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4CQ=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E7=94=9F=E6=88=90=E5=B7=A5=E5=85=B7=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action/cq_msg_gen.go | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 action/cq_msg_gen.go diff --git a/action/cq_msg_gen.go b/action/cq_msg_gen.go deleted file mode 100644 index 2e72fe4..0000000 --- a/action/cq_msg_gen.go +++ /dev/null @@ -1,24 +0,0 @@ -package action - -import "fmt" - -func GenReplyCQ(msgId int32, text string, qq int64, time int64, seq int64) string { - if msgId == 0 { - return "" - } - cq_str := "[CQ:reply,id=" + fmt.Sprint(msgId) - if text != "" { - cq_str += ",text=" + text - } - if qq != 0 { - cq_str += ",qq=" + fmt.Sprint(qq) - } - if time != 0 { - cq_str += ",time=" + fmt.Sprint(time) - } - if seq != 0 { - cq_str += ",seq=" + fmt.Sprint(seq) - } - cq_str += "]" - return cq_str -}