A slack bot for light Untappd integration, written using Node.js, Express and deployed on Heroku.
Note: Most queries use a delayed response callback, so the immediate response will be a Working...
message that is only shown to the calling user. This avoids the 3 second timeout on Slack slash command response.
Note: The bot uses the following custom emojis for more detail and visual uniformity : :fullbeer:
, :threequarterbeer:
, :halfbeer:
and :quarterbeer:
.
![Simple query](https://camo.githubusercontent.com/11d3fa7effa23260e60cc8c8e9717c7b894f87f523b0ea1cb32b076c474bcdf4/68747470733a2f2f692e696d6775722e636f6d2f7935656f324e4f2e706e67)
Performs a beer search for the given query, grabs the top result and prints out a post with link to the beer page with some inline metadata.
![Multi-query](https://camo.githubusercontent.com/93b87f95d98226250f8161dfd84584b7489e2158aa7132b91948e396c4f06e10/68747470733a2f2f692e696d6775722e636f6d2f614938674768702e706e67)
You can also search for multiple beers in one request by separating your queries with commas.
![Username](https://camo.githubusercontent.com/e882530b377322d006fd2f758c32733e6c128de3aa9c269b379b60c4c6bf9cc9/68747470733a2f2f692e696d6775722e636f6d2f6f4271304250562e706e67)
Registers a Slack user's Untappd username so that `/review` can be used.
![Own review](https://camo.githubusercontent.com/7c11b86f7ab910070245bbb05733030f97e13c736b6a63b73e95a71a3357dd83/68747470733a2f2f692e696d6775722e636f6d2f6c35666b6751552e706e67)
Fetches the latest Untappd check-in for the calling user for the requested beer, as well as its aggregate score over all check-ins.
![Other review](https://camo.githubusercontent.com/d4d74349193fb76c5a1d3435939dbf9cf1fd711df7ab453c45917541e8d14fab/68747470733a2f2f692e696d6775722e636f6d2f41646c674355732e706e67)
Fetches the latest Untappd check-in for _another_ registered user for the requested beer, as well as its aggregate score over all check-ins.
![All reviews](https://camo.githubusercontent.com/2fa0055f6dd139668875c11fbaac1f4e6c63409160c33fe93d937dd10511412e/68747470733a2f2f692e696d6775722e636f6d2f487937476658322e706e67)
Fetches the latest Untappd check-in for _all_ registered users for the requested beer, beer as well as its aggregate score over all check-ins.
![Variants and vintages](https://camo.githubusercontent.com/dcd7715ee0b59614d1827298cd502d34ef6bc8a32ab09cc6da9be9433a22122e/68747470733a2f2f692e696d6775722e636f6d2f5a33496e6a41692e706e67)
If the queried beer wasn't checked in by a user, its variants and vintages will be tested for check-ins.
Not meant for public consumption just yet! I'll write a guide once it is.