mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 22:00:11 +08:00
chore: make lint happy
This commit is contained in:
parent
a8b2587cee
commit
350e2e3907
@ -142,7 +142,11 @@ func init() {
|
|||||||
if gid == 0 {
|
if gid == 0 {
|
||||||
gid = -ctx.Event.UserID
|
gid = -ctx.Event.UserID
|
||||||
}
|
}
|
||||||
c.SetData(gid, int64(r&0xff))
|
err = c.SetData(gid, int64(r&0xff))
|
||||||
|
if err != nil {
|
||||||
|
ctx.SendChain(message.Text("ERROR: set data err: ", err))
|
||||||
|
return
|
||||||
|
}
|
||||||
ctx.SendChain(message.Text("成功"))
|
ctx.SendChain(message.Text("成功"))
|
||||||
})
|
})
|
||||||
en.OnPrefix("设置AI聊天密钥", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
|
en.OnPrefix("设置AI聊天密钥", zero.OnlyPrivate, zero.SuperUserPermission).SetBlock(true).Handle(func(ctx *zero.Ctx) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user