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