修改回复

This commit is contained in:
liyp 2024-04-14 20:43:39 +08:00
parent 070738fd9d
commit b031ee4270

View file

@ -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) + "的释义"