If you are interested in donating public hosting for this application it would be very easy to let anyone on slack use this with the click of a button. Right now I am running it on a private host for only a couple slack teams.
A Slack (Application) for searching the Untappd Beer Search API for information about a given beer.
- Register for Untappd API Credentials
- Get the server running somewhere on a public host
- Configure a Slack Application. See Slack Docs.
TODO (03-13-2017): Add more details about Slack Application configuration.
The following environment variables must be set:
SLACK_TOKEN
- The token assigned to the slash command integration (can contain multiple comma seperated tokens)UNTAPPD_CLIENT_ID
- Your Untappd API client IDUNTAPPD_CLIENT_SECRET
- Your Untappd API client secret token
The server expects a POST request from Slack with the following form values:
- token
- user_name
- text
These values should be present in the default slack POST in addition to other non-used values.
The server will do a lookup on the Untappd API for the given text
in the Slack POST. If no result is found an ephemeral
(only displayed to requesting user) message will be returned stating that no results were found. If results are found an in_channel
(displayed to anyone in the channel) message will be returned.
A user will type /untappd Boulevard Wheat
which will produce:
a user then has the option to select the desired beer which will produce: