This commit is contained in:
cdle
2021-10-17 22:49:05 +08:00
parent 825384ce4b
commit b7690c3007
2 changed files with 19 additions and 21 deletions
-1
View File
@@ -149,7 +149,6 @@ func handleMessage(sender Sender) {
// if sender.GetImType() != "wx" && sender.GetImType() != "qq" {
sender.Reply("再捣乱我就报警啦~")
// }
sender.Finish()
return
}
rt := function.Handle(sender)
+19 -20
View File
@@ -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)
}