Skip to content

Commit

Permalink
beta438
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko committed Jun 26, 2024
1 parent ff93fa4 commit 2d425d7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ func main() {
log.Println("配置文件已更新为新版,当前配置文件已备份.如产生问题请到群196173384反馈开发者。")
return
}
if *c {
idmap.ClearBucket("ids")
}
if _, err := os.Stat("config.yml"); os.IsNotExist(err) {
var ip string
var err error
Expand Down Expand Up @@ -208,6 +205,12 @@ func main() {
defer idmap.CloseDB()
defer botstats.CloseDB()

if *c {
mylog.Printf("开始清理ids\n")
idmap.ClearBucket("ids")
mylog.Printf("ids清理完成\n")
}

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

0 comments on commit 2d425d7

Please sign in to comment.