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

Beta411 #415

Merged
merged 14 commits into from
May 28, 2024
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,19 +182,21 @@ func main() {
} else {
log.Printf("自定义ac地址模式...请从日志手动获取bot的真实id并设置,不然at会不正常")
}

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

if !nologin {

//创建idmap服务器 数据库
idmap.InitializeDB()
//创建botstats数据库
botstats.InitializeDB()
//创建webui数据库
webui.InitializeDB()

//关闭时候释放数据库
defer idmap.CloseDB()
defer botstats.CloseDB()
defer webui.CloseDB()

if configURL == "" && !fix11300 { //初始化handlers
handlers.BotID = me.ID
Expand Down
Loading