Skip to content

Commit

Permalink
🔖 v1.3.2-fix2: 无法设置主人账号
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Apr 2, 2022
1 parent 3e9d5ee commit 3cd8af5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
5 changes: 2 additions & 3 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ import (
// //
// //
// -----------------------以下为内置依赖,勿动------------------------ //
"github.com/FloatTech/zbputils/process"

zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/driver"
"github.com/wdvxdr1123/ZeroBot/message"
Expand All @@ -171,7 +171,7 @@ func init() {

arg := flag.Args()
var qqs []string
if len(arg) > 1 {
if len(arg) > 0 {
for _, a := range arg {
i, err := strconv.ParseUint(a, 10, 64)
if err == nil {
Expand Down Expand Up @@ -204,6 +204,5 @@ func init() {
Driver: []zero.Driver{f},
},
)
process.GlobalInitMutex.Unlock()
})
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/FloatTech/gocqzbp
go 1.18

require (
github.com/FloatTech/ZeroBot-Plugin v1.3.2-fix1
github.com/FloatTech/zbputils v1.3.2
github.com/FloatTech/ZeroBot-Plugin v1.3.3-0.20220402144521-176a2eb39279
github.com/FloatTech/zbputils v1.3.3-0.20220402144434-73a4caf53729
github.com/Mrs4s/go-cqhttp v1.0.0-rc1
github.com/sirupsen/logrus v1.8.1
github.com/tidwall/gjson v1.14.0
Expand Down
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ import (
"github.com/sirupsen/logrus"

"github.com/Mrs4s/go-cqhttp/cmd/gocq"

_ "github.com/Mrs4s/go-cqhttp/db/leveldb" // leveldb
_ "github.com/Mrs4s/go-cqhttp/modules/mime" // mime检查模块

// _ "github.com/Mrs4s/go-cqhttp/modules/pprof" // pprof 性能分析

_ "github.com/Mrs4s/go-cqhttp/modules/silk" // silk编码模块

"github.com/FloatTech/zbputils/process"
)

var (
Expand Down Expand Up @@ -76,6 +74,9 @@ func main() {
gocq.PrintBanner()
gocq.CheckKey(gocq.ParseCommand())
gocq.LoadDevice()

process.GlobalInitMutex.Unlock()

gocq.Main()
}

Expand Down

0 comments on commit 3cd8af5

Please sign in to comment.