diff --git a/workers/hhsh.go b/workers/hhsh.go index 179fc2f..ff15361 100644 --- a/workers/hhsh.go +++ b/workers/hhsh.go @@ -48,12 +48,12 @@ func (a *Hhsh) GetMsg() string { if trans, ok := resultSlipe[0].(map[string]interface{})["trans"]; ok { // println("trans:", trans.([]interface{})) transSlice := trans.([]interface{}) - msg := "[CQ:reply,id=" + a.MID + "](" + msg := "[CQ:reply,id=" + a.MID + "]" for _, item := range transSlice { // fmt.Print(item, " ") msg += item.(string) + " " } - return msg + ")" + return msg } // return string(resultSlipe[0].([]byte)) return "未找到关于" + resultSlipe[0].(map[string]interface{})["trans"].([]interface{})[0].(string) + "的释义"