add reset

This commit is contained in:
源文雨
2022-12-07 21:08:54 +08:00
parent e49b568d6d
commit df83ffc8b0
3 changed files with 6 additions and 3 deletions

View File

@@ -199,4 +199,7 @@ func init() { // 插件主体
})
ctx.SendChain(message.Text("设置成功"))
})
ent.OnFullMatch("重置ChatGPT连接").SetBlock(true).Handle(func(ctx *zero.Ctx) {
chats.Reset(ctx.Event.UserID)
})
}