update
This commit is contained in:
@@ -149,7 +149,6 @@ func handleMessage(sender Sender) {
|
|||||||
// if sender.GetImType() != "wx" && sender.GetImType() != "qq" {
|
// if sender.GetImType() != "wx" && sender.GetImType() != "qq" {
|
||||||
sender.Reply("再捣乱我就报警啦~")
|
sender.Reply("再捣乱我就报警啦~")
|
||||||
// }
|
// }
|
||||||
sender.Finish()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
rt := function.Handle(sender)
|
rt := function.Handle(sender)
|
||||||
|
|||||||
+19
-20
@@ -14,7 +14,6 @@ import (
|
|||||||
"github.com/Mrs4s/go-cqhttp/global"
|
"github.com/Mrs4s/go-cqhttp/global"
|
||||||
"github.com/Mrs4s/go-cqhttp/global/config"
|
"github.com/Mrs4s/go-cqhttp/global/config"
|
||||||
"github.com/cdle/sillyGirl/core"
|
"github.com/cdle/sillyGirl/core"
|
||||||
yaml "gopkg.in/yaml.v3"
|
|
||||||
|
|
||||||
"github.com/Mrs4s/MiraiGo/binary"
|
"github.com/Mrs4s/MiraiGo/binary"
|
||||||
"github.com/Mrs4s/MiraiGo/client"
|
"github.com/Mrs4s/MiraiGo/client"
|
||||||
@@ -50,25 +49,25 @@ func start() {
|
|||||||
conf.Account.Password = qq.Get("password")
|
conf.Account.Password = qq.Get("password")
|
||||||
conf.Message.ReportSelfMessage = true
|
conf.Message.ReportSelfMessage = true
|
||||||
conf.Account.ReLogin.MaxTimes = 30
|
conf.Account.ReLogin.MaxTimes = 30
|
||||||
conf.Output.Debug = true
|
// conf.Output.Debug = true
|
||||||
conf.Database = map[string]yaml.Node{
|
// conf.Database = map[string]yaml.Node{
|
||||||
"leveldb": {
|
// "leveldb": {
|
||||||
Kind: 4,
|
// Kind: 4,
|
||||||
Tag: "!!map",
|
// Tag: "!!map",
|
||||||
Content: []*yaml.Node{
|
// Content: []*yaml.Node{
|
||||||
{
|
// {
|
||||||
Kind: 8,
|
// Kind: 8,
|
||||||
Tag: "!!str",
|
// Tag: "!!str",
|
||||||
Value: "enable",
|
// Value: "enable",
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
Kind: 8,
|
// Kind: 8,
|
||||||
Tag: "!!bool",
|
// Tag: "!!bool",
|
||||||
Value: "true",
|
// Value: "true",
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
}
|
// }
|
||||||
if conf.Output.Debug {
|
if conf.Output.Debug {
|
||||||
log.SetReportCaller(true)
|
log.SetReportCaller(true)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user