Skip to content

Send new beer alerts to your Slack channel based on tweets from your favorite breweries.

License

Notifications You must be signed in to change notification settings

ErinMorelli/em-slack-beer-alerts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EM Slack Beer Alerts

Send new beer alerts to your Slack channel based on tweets from your favorite breweries.

Quality Gate Status


Installation

  1. Download this repository to your webserver:

    git clone https://github.com/ErinMorelli/em-slack-beer-alerts.git
    
  2. Navigate into the folder created by step 1 and install the required python packages by running pip:

    pip install -r requirements.txt
    
  3. 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.

  4. 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.

  5. Add the EM Slack Beer Alerts application to your Slack workspace using this link:

    https://hooks.erinmorelli.com/slack/beer-alerts/

  6. Configure an IFTTT applet to trigger this script based on tweets. For example, here is how I have configured mine:

    This:

    • Trigger: "Twitter" --> "New tweet from search"
    • Search For: "from:nightshiftbeer, OR from:trilliumbrewing, OR from:treehousebrewco exclude:replies exclude:retweets"

    That:

    • Action: "Webhooks" --> "Make a web request"

    • URL: "http://path/to/your/webserver/beer_alerts.py"

    • Method: "POST"

    • Content Type: "application/json"

    • Body:

      {
          tweet_url": {{LinkToTweet}},
          "user": {{UserName}},
          "webhook_urls": [
              "https://hooks.slack.com/services/your/slack/webhook_one",
              "https://hooks.slack.com/services/your/slack/webhook_two"
          ]
      }
      

Disclaimers

Slack.com is not affiliated with the maker of this product and does not endorse this product.

Application icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

About

Send new beer alerts to your Slack channel based on tweets from your favorite breweries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages