Skip to content

Instantly share code, notes, and snippets.

@schrobby
Last active January 27, 2024 18:28
Show Gist options
  • Save schrobby/1f547cdae070d1b45b58d0ef864f2d87 to your computer and use it in GitHub Desktop.
Save schrobby/1f547cdae070d1b45b58d0ef864f2d87 to your computer and use it in GitHub Desktop.
Nightbot command that returns the top 5 players from Sink Race #4
$(eval r=$(urlfetch json https://keepthescore.com/api/xckjgssgfkzlr/board/); s = ''; c = 0; for (p of r.players) {if (c >= 5) break; c++; s += `${p.name} (${p.score}) — `}; s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment