Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beta412 #416

Merged
merged 15 commits into from
May 28, 2024
9 changes: 4 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ func main() {
loggerAdapter := mylog.NewMyLogAdapter(logLevel, config.GetSaveLogs())
botgo.SetLogger(loggerAdapter)

// 创建webui数据库
webui.InitializeDB()
defer webui.CloseDB()

if conf.Settings.AppID == 12345 {
// 输出天蓝色文本
cyan := color.New(color.FgCyan)
Expand Down Expand Up @@ -183,12 +187,7 @@ func main() {
log.Printf("自定义ac地址模式...请从日志手动获取bot的真实id并设置,不然at会不正常")
}

// 创建webui数据库
webui.InitializeDB()
defer webui.CloseDB()

if !nologin {

//创建idmap服务器 数据库
idmap.InitializeDB()
//创建botstats数据库
Expand Down
Loading