Skip to content

Commit

Permalink
feat: change floor activity to watching
Browse files Browse the repository at this point in the history
This commit uses the new UpdateWatchStatus of
bwmarrin/discordgo#1291 to set the activity to
watching instead of streaming.
  • Loading branch information
rickstaa committed Nov 29, 2022
1 parent d6b72fd commit ec87e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions floor.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ func (f *Floor) watchFloorPrice() {
time.Sleep(time.Duration(f.Frequency) * time.Second)
}

err = dg.UpdateGameStatus(0, activity)
err = dg.UpdateWatchStatus(0, activity)
if err != nil {
logger.Errorf("Unable to set activity: %s\n", err)
} else {
logger.Debugf("Set activity: %s", activity)
}
} else {

err = dg.UpdateGameStatus(0, price)
err = dg.UpdateWatchStatus(0, price)
if err != nil {
logger.Errorf("Unable to set activity: %s\n", err)
} else {
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ require (
golang.org/x/text v0.3.6
modernc.org/sqlite v1.14.1
)

replace github.com/bwmarrin/discordgo => /home/ricks/Development/personal/discordgo

0 comments on commit ec87e32

Please sign in to comment.