We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b2587 commit 350e2e3Copy full SHA for 350e2e3
plugin/aichat/main.go
@@ -142,7 +142,11 @@ func init() {
142
if gid == 0 {
143
gid = -ctx.Event.UserID
144
}
145
- c.SetData(gid, int64(r&0xff))
+ err = c.SetData(gid, int64(r&0xff))
146
+ if err != nil {
147
+ ctx.SendChain(message.Text("ERROR: set data err: ", err))
148
+ return
149
+ }
150
ctx.SendChain(message.Text("成功"))
151
})
152
en.OnPrefix("设置AI聊天密钥", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
0 commit comments