Skip to content

Commit

Permalink
feat: update bots to use username instead of status
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkdean committed May 16, 2022
1 parent f2d582c commit 57e442f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/network-bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class NetworkBot {

const activity = `${sessions} nodes online`
this.log.info(`Updating status ticker to '${activity}'`)
this.client.user?.setActivity(activity, { type: 'WATCHING' })
this.client.user?.setActivity('Network Status', { type: 'WATCHING' })
this.client.user?.setUsername(activity)
this.lastSessions = sessions

return
Expand Down
3 changes: 2 additions & 1 deletion src/price-bot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export class PriceBot {
this.log.info(`Updating price ticker to ${currentPrice} USD/XE (${sign}${difference})`)

const activity = `$${currentPrice.toFixed(6)}`
this.client.user?.setActivity(activity, { type: 'WATCHING' })
this.client.user?.setActivity('$EDGE Price', { type: 'WATCHING' })
this.client.user?.setUsername(activity)
this.lastPrice = currentPrice

return
Expand Down

0 comments on commit 57e442f

Please sign in to comment.