Compare commits

...
2 Commits
Author SHA1 Message Date
Dustin Pianalto 458250eb80 Update status updater 2021-08-05 23:21:20 -08:00
Dustin Pianalto 5258cf33a7 Test statis update 2021-08-05 22:46:32 -08:00
+2 -6
View File
@@ -38,12 +38,8 @@ func (s *StatusManager) SetInterval(interval string) {
// UpdateStatus updates the status of the bot
func (s *StatusManager) UpdateStatus(session *discordgo.Session) error {
i := rand.Intn(len(s.Values))
usd := discordgo.UpdateStatusData{
Status: s.Values[i],
AFK: false,
}
err := session.UpdateStatusComplex(usd)
log.Println(err.Error())
err := session.UpdateGameStatus(0, s.Values[i])
log.Println(err)
return err
}