Skip to content

Instantly share code, notes, and snippets.

@schrobby
Created January 27, 2024 18:09
Show Gist options
  • Save schrobby/4dce588fe9c2b442daf491013a1fe7bf to your computer and use it in GitHub Desktop.
Save schrobby/4dce588fe9c2b442daf491013a1fe7bf to your computer and use it in GitHub Desktop.
Nightbot command to fetch score of <player> !score <player
$(eval r=$(urlfetch json https://keepthescore.com/api/xckjgssgfkzlr/board/); s = r.players.filter(p => p.name.toLowerCase().includes(`$(1)`.toLowerCase()))[0]; `${s.name} currently have ${s.score} points.`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment