Update status updater
This commit is contained in:
parent
5258cf33a7
commit
458250eb80
@ -38,11 +38,7 @@ 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],
|
|
||||||
AFK: false,
|
|
||||||
}
|
|
||||||
err := session.UpdateStatusComplex(usd)
|
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user