mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-01-12 00:29:04 +08:00
chore: make lint happy
This commit is contained in:
parent
57c41a7db2
commit
71d43eb101
@ -47,10 +47,6 @@ var (
|
||||
|
||||
func init() {
|
||||
en.OnMessage(chat.EnsureConfig, func(ctx *zero.Ctx) bool {
|
||||
gid := ctx.Event.GroupID
|
||||
if gid == 0 {
|
||||
gid = -ctx.Event.UserID
|
||||
}
|
||||
stor, ok := ctx.State[zero.StateKeyPrefixKeep+"aichatcfg_stor__"].(chat.Storage)
|
||||
if !ok {
|
||||
logrus.Warnln("ERROR: cannot get stor")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user