修改cq回复
This commit is contained in:
parent
b031ee4270
commit
9b7a160e61
1 changed files with 1 additions and 1 deletions
|
@ -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) + " "
|
||||||
|
|
Loading…
Reference in a new issue