Skip to content

Commit

Permalink
Update updater.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen3H committed Jul 27, 2024
1 parent 8285582 commit cf1df89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,13 +283,13 @@ async function updateLastSeen() {
const now = Date.now()

ops.forEach((op: SeenPlayer) => {
op.timestamp = now
const seen = lastSeenPlayers.get(op.name)

if (!op.transitions) op.transitions = 0

const seen = lastSeenPlayers.get(op.name)
if (!seen?.online) op.transitions++

op.timestamp = now

lastSeenPlayers.set(op.name, op)
})

Expand Down

0 comments on commit cf1df89

Please sign in to comment.