Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
458250eb80 | ||
|
|
5258cf33a7 |
+2
-6
@@ -38,12 +38,8 @@ func (s *StatusManager) SetInterval(interval string) {
|
|||||||
// UpdateStatus updates the status of the bot
|
// UpdateStatus updates the status of the bot
|
||||||
func (s *StatusManager) UpdateStatus(session *discordgo.Session) error {
|
func (s *StatusManager) UpdateStatus(session *discordgo.Session) error {
|
||||||
i := rand.Intn(len(s.Values))
|
i := rand.Intn(len(s.Values))
|
||||||
usd := discordgo.UpdateStatusData{
|
err := session.UpdateGameStatus(0, s.Values[i])
|
||||||
Status: s.Values[i],
|
log.Println(err)
|
||||||
AFK: false,
|
|
||||||
}
|
|
||||||
err := session.UpdateStatusComplex(usd)
|
|
||||||
log.Println(err.Error())
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user