mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2026-03-01 02:20:25 +00:00
chore: make lint happy
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user