Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ad95f415f | ||
|
|
c80fb3f00a |
+2
-2
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user