Send new beer alerts to your Slack channel based on tweets from your favorite breweries.
Download this repository to your webserver:
git clone https://github.com/ErinMorelli/em-slack-beer-alerts.git
Navigate into the folder created by step 1 and install the required python packages by running pip
:
pip install -r requirements.txt
Rename the config/sample_twitter.yml
file to config/twitter.yml
and add your own Twitter API credentials. Find instructions on how to get your credentials here.
Add the Twitter accounts and regular expressions that match the types of tweets you want to track to the config/regexes.yml
file. Find more information on how to do this in the comments of that file.
Add the EM Slack Beer Alerts application to your Slack workspace using this link:
https://hooks.erinmorelli.com/slack/beer-alerts/
Configure an IFTTT applet to trigger this script based on tweets. For example, here is how I have configured mine:
Body:
{ tweet_url": , "user": , "webhook_urls": [ "https://hooks.slack.com/services/your/slack/webhook_one", "https://hooks.slack.com/services/your/slack/webhook_two" ] }