Compare commits

..
2 Commits
Author SHA1 Message Date
Dustin Pianalto 4ad95f415f Change status default interval to 30s 2020-05-12 11:46:02 -08:00
Dustin Pianalto c80fb3f00a Remove log.Fatal in status manager 2020-05-04 21:56:59 -08:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -50,14 +50,14 @@ func (s *StatusManager) OnReady(session *discordgo.Session, _ *discordgo.Ready)
err = s.UpdateStatus(session) err = s.UpdateStatus(session)
if err != nil { if err != nil {
log.Fatal(err) log.Println(err)
} }
ticker := time.NewTicker(interval) ticker := time.NewTicker(interval)
for range ticker.C { for range ticker.C {
err = s.UpdateStatus(session) err = s.UpdateStatus(session)
if err != nil { if err != nil {
log.Fatal(err) log.Println(err)
} }
} }
} }
+1 -1
View File
@@ -20,7 +20,7 @@ func GetDefaultStatusManager() StatusManager {
"Golang!", "Golang!",
"DiscordGo!", "DiscordGo!",
"Disgoman!", "Disgoman!",
}, "10s"} }, "30s"}
} }
// HasHigherRole checks if the caller has a higher role than the target in the given guild // HasHigherRole checks if the caller has a higher role than the target in the given guild