diff --git a/internal/bot/server.go b/internal/bot/server.go index 2a6c65e..719c034 100644 --- a/internal/bot/server.go +++ b/internal/bot/server.go @@ -87,9 +87,9 @@ var configs = LoadAllServerConfigOrPanic(config.CONFIG_PATH) func IntervalReloadConfigs() { for { + time.Sleep(5 * time.Minute) log.Print("Reloading server configs") configs = LoadAllServerConfigOrPanic(config.CONFIG_PATH) - time.Sleep(5 * time.Hour) } }