修改cq回复

This commit is contained in:
liyp 2024-04-14 20:46:34 +08:00
parent b031ee4270
commit 9b7a160e61

View file

@ -48,7 +48,7 @@ func (a *Hhsh) GetMsg() string {
if trans, ok := resultSlipe[0].(map[string]interface{})["trans"]; ok { if trans, ok := resultSlipe[0].(map[string]interface{})["trans"]; ok {
// println("trans:", trans.([]interface{})) // println("trans:", trans.([]interface{}))
transSlice := trans.([]interface{}) transSlice := trans.([]interface{})
msg := "[CQ:reply,id=" + a.MID + "]" msg := "[CQ:reply,id=" + a.MID + "][CQ:at,qq=" + a.UID + "] "
for _, item := range transSlice { for _, item := range transSlice {
// fmt.Print(item, " ") // fmt.Print(item, " ")
msg += item.(string) + " " msg += item.(string) + " "