We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57c41a7 commit 71d43ebCopy full SHA for 71d43eb
1 file changed
plugin/aichat/main.go
@@ -47,10 +47,6 @@ var (
47
48
func init() {
49
en.OnMessage(chat.EnsureConfig, func(ctx *zero.Ctx) bool {
50
- gid := ctx.Event.GroupID
51
- if gid == 0 {
52
- gid = -ctx.Event.UserID
53
- }
54
stor, ok := ctx.State[zero.StateKeyPrefixKeep+"aichatcfg_stor__"].(chat.Storage)
55
if !ok {
56
logrus.Warnln("ERROR: cannot get stor")
0 commit comments