增加沙雕app一系列接口 (#91)

* feat:添加沙雕app一系列api

* fix: 修个文案

* fix:修改等级

* fix:好孩子不能骂人

Co-authored-by: Guohuiyuan <haibaraguo@yeahka.com>
This commit is contained in:
himawari
2021-12-24 12:32:26 +08:00
committed by GitHub
parent f56cee9ec1
commit a3b5a226ac
12 changed files with 208 additions and 62 deletions

View File

@@ -43,16 +43,16 @@ func init() {
text := gjson.Get(helper.BytesToString(data), "data.Title").String()
m = append(m,
message.CustomNode(
zero.BotConfig.NickName[0],
ctx.Event.SelfID,
ctx.Event.Sender.NickName,
ctx.Event.UserID,
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(
zero.BotConfig.NickName[0],
ctx.Event.SelfID,
ctx.Event.Sender.NickName,
ctx.Event.UserID,
imgcq),
)
return true