|
|
@ -81,9 +81,7 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
log.LogInfo("Thanos is now running. Press CTRL-C to exit.") |
|
|
|
log.LogInfo("Thanos is now running. Press CTRL-C to exit.") |
|
|
|
go purgeTimer(dg) |
|
|
|
go purgeTimer(dg) |
|
|
|
if time.Since(config.BumpTime) > 2*time.Hour { |
|
|
|
go rebootBump() |
|
|
|
dg.ChannelMessageSend(config.AdminChannel, "!d bump is ready") |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
sc := make(chan os.Signal, 1) |
|
|
|
sc := make(chan os.Signal, 1) |
|
|
|
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill) |
|
|
|
signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill) |
|
|
|
<-sc |
|
|
|
<-sc |
|
|
|