Slack Cocktail Bot
![](https://github.com/HidemichiShimura/slack-cocktail-bot/raw/main/public/cocktailBot-demo.gif)
Description
This Slack bot picks one cocktail from numerous kinds for you.\
It's time to use this bot when you don't know what you feel like drinking tonight!
Built with
![](https://github.com/HidemichiShimura/slack-cocktail-bot/raw/main/public/icon-node.png)
Installation on a local environment
Install ngrok
- Install ngrok
Slack App setup
- Create an app on Slack API
- Set scopes
- app_mentions:read
- channels:read
- chat:write
- groups:read
- im:read
- mpim:read
- Subscribe events
- Add the app to a workspace
- Add the bot to a channel
Subscribe to The Cocktail DB API
- Subscribe to The Cocktail DB API at Rapid API
Clone the repository
git clone https://github.com/HidemichiShimura/slack-cocktail-bot
Set environment variables
- Set environment variable for Slack App Token and The Cocktail API key
export AUTH=<Bot User OAuth Token>
export X_RAPIDAPI_KEY=<X-RapidAPI-Key>
Usage
- Activate ngrok with Port 5000
ngrok http 5000
-
Set URL created by ngrok to Request URL on Slack API
![](https://github.com/HidemichiShimura/slack-cocktail-bot/raw/main/public/requestURL.png)
-
Start app
npm start
- Mention the bot
Documentation