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 b030f3f commit 8285582
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 @@ -285,10 +285,10 @@ async function updateLastSeen() {
ops.forEach((op: SeenPlayer) => {
op.timestamp = now

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

const seen = lastSeenPlayers.get(op.name)
if (seen?.online) {
op.transitions = op.transitions ? op.transitions + 1 : 0
}
if (!seen?.online) op.transitions++

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

0 comments on commit 8285582

Please sign in to comment.