Browse Source

Add reboot logging for time

hkremer/rebranding
Gregory Rudolph 4 years ago
parent
commit
f618ec6a3c
Signed by: rudi
GPG Key ID: EF64F3CBD1A1EBDD
  1. 1
      config.go

1
config.go

@ -163,6 +163,7 @@ func purgeTimer(s *discordgo.Session) { @@ -163,6 +163,7 @@ func purgeTimer(s *discordgo.Session) {
runPurge(s)
saveConfig()
if time.Since(lastActiveTime) > 4 * time.Hour && time.Since(startupTime) > 12 * time.Hour {
log.LogInfo("Restarting.")
saveConfig()
os.Exit(0)
}

Loading…
Cancel
Save