diff --git a/config.go b/config.go index 65b520f..6775cb1 100644 --- a/config.go +++ b/config.go @@ -14,7 +14,7 @@ func status(s *discordgo.Session) { defer log.PanicSafe() status := fmt.Sprintf("Uptime: %+v\n", time.Since(startupTime)) status += fmt.Sprintf("Last bump: %+v\n", time.Since(config.BumpTime)) - status += fmt.Sprintf("Last bumper: <@%+v>\n", config.LastBumper) + status += fmt.Sprintf("Last bumper: <@%+v>\n", userFromID(s, config.LastBumper).Username) status += fmt.Sprintf("Bump needed: %+v\n", bump) if len(config.Unverified) > 0 { status += "Unverified users:\n```" diff --git a/main.go b/main.go index 6e5193f..b4d2841 100644 --- a/main.go +++ b/main.go @@ -86,6 +86,9 @@ func main() { log.LogInfo("Thanos is now running. Press CTRL-C to exit.") go purgeTimer(dg) + if time.Since(config.BumpTime) > 2 * time.Hour { + dg.ChannelMessageSend(config.AdminChannel, "!d bump is ready") + } sc := make(chan os.Signal, 1) signal.Notify(sc, syscall.SIGINT, syscall.SIGTERM, os.Interrupt, os.Kill) <-sc