diff --git a/core/function.go b/core/function.go index 4662d0d..0bd5d2c 100644 --- a/core/function.go +++ b/core/function.go @@ -149,7 +149,6 @@ func handleMessage(sender Sender) { // if sender.GetImType() != "wx" && sender.GetImType() != "qq" { sender.Reply("再捣乱我就报警啦~") // } - sender.Finish() return } rt := function.Handle(sender) diff --git a/im/qq/main.go b/im/qq/main.go index fc32040..3d2fc60 100644 --- a/im/qq/main.go +++ b/im/qq/main.go @@ -14,7 +14,6 @@ import ( "github.com/Mrs4s/go-cqhttp/global" "github.com/Mrs4s/go-cqhttp/global/config" "github.com/cdle/sillyGirl/core" - yaml "gopkg.in/yaml.v3" "github.com/Mrs4s/MiraiGo/binary" "github.com/Mrs4s/MiraiGo/client" @@ -50,25 +49,25 @@ func start() { conf.Account.Password = qq.Get("password") conf.Message.ReportSelfMessage = true conf.Account.ReLogin.MaxTimes = 30 - conf.Output.Debug = true - conf.Database = map[string]yaml.Node{ - "leveldb": { - Kind: 4, - Tag: "!!map", - Content: []*yaml.Node{ - { - Kind: 8, - Tag: "!!str", - Value: "enable", - }, - { - Kind: 8, - Tag: "!!bool", - Value: "true", - }, - }, - }, - } + // conf.Output.Debug = true + // conf.Database = map[string]yaml.Node{ + // "leveldb": { + // Kind: 4, + // Tag: "!!map", + // Content: []*yaml.Node{ + // { + // Kind: 8, + // Tag: "!!str", + // Value: "enable", + // }, + // { + // Kind: 8, + // Tag: "!!bool", + // Value: "true", + // }, + // }, + // }, + // } if conf.Output.Debug { log.SetReportCaller(true) }