zknill/points: a slack and cli leaderboard!
points was born out of a joke in the office…
“10 points to whoever can tell me the answer to …”
So the natural thing to do next was to build a small go program that could track a leaderboard and display the points in a nice format.
https://github.com/zknill/points
points allows you to add names and scores and keeps a tally of who’s in the lead.
points outputs the leaderboard as an ascii table that can easily be shared in your team’s chat.
| |
Once points worked on the cli, the next step was to add slack integration.
There is a single endpoint POST /command which takes x-www-form-urlendoded data.
The text field holds the commands to be parsed by the app. e.g. list or add slackbot
in slack: /points add slackbot