在设置群回复模式的时候没有生效
This commit is contained in:
源文雨
2022-12-12 18:50:41 +08:00
parent 7893fc9ebe
commit 771f93f9af
3 changed files with 4 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ func setReplyMode(ctx *zero.Ctx, name string) error {
if !ok {
return errors.New("no such plugin")
}
return m.SetData((m.GetData(gid)&^0xff)|(gid&0xff), index)
return m.SetData(gid, (m.GetData(index)&^0xff)|(index&0xff))
}
var chats *aireply.ChatGPT