🐛 🔥 ascii2d返回多结果&修复合并转发

This commit is contained in:
fumiama
2022-02-07 20:39:49 +08:00
parent 477868c601
commit 259b29f6e3
6 changed files with 56 additions and 35 deletions

View File

@@ -48,12 +48,13 @@ func init() {
text,
))
gjson.Get(helper.BytesToString(data), "data.data").ForEach(func(_, value gjson.Result) bool {
imgcq := `[CQ:image,file=` + value.String() + `]`
m = append(m,
message.CustomNode(
ctx.Event.Sender.NickName,
ctx.Event.UserID,
imgcq),
[]message.MessageSegment{
message.Image(value.String()),
}),
)
return true
})