rename builds -> bots

This commit is contained in:
Lunny Xiao
2022-11-21 16:18:12 +08:00
committed by Jason Song
parent c61ac24c1c
commit 2ecb59c092
24 changed files with 81 additions and 78 deletions

View File

@@ -20,10 +20,10 @@ var (
}
)
func newBuilds() {
func newBots() {
sec := Cfg.Section("bots")
if err := sec.MapTo(&Bots); err != nil {
log.Fatal("Failed to map Builds settings: %v", err)
log.Fatal("Failed to map Bots settings: %v", err)
}
Bots.Storage = getStorage("bots_log", "", nil)

View File

@@ -1079,7 +1079,7 @@ func loadFromConf(allowEmpty bool, extraConfig string) {
newPackages()
newBuilds()
newBots()
if err = Cfg.Section("ui").MapTo(&UI); err != nil {
log.Fatal("Failed to map UI settings: %v", err)