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 Dec 5, 2022
1 parent 305bd0f commit d253442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion floor.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (f *Floor) watchFloorPrice() {
}
} 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 d253442

Please sign in to comment.