Skip to content

Commit

Permalink
add easy get method for near
Browse files Browse the repository at this point in the history
  • Loading branch information
kaduvert authored Oct 2, 2024
1 parent 97472b5 commit 3465fad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/basic/near.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ module.exports = function load(bot, ns) {
})
return nearPlayers
}

ns.near.get = () => (bot.gg.near.parsePlayers((await bot.gg.near.getPlayers()).eventArgs[0][0][0]))
}

0 comments on commit 3465fad

Please sign in to comment.