diff --git a/plugin/aichat/main.go b/plugin/aichat/main.go index e17e4ac7..6d4cffda 100644 --- a/plugin/aichat/main.go +++ b/plugin/aichat/main.go @@ -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")