Skip to content

Argonnite/tweetbrew

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tweetbrew

Build Status

A twitter bot generates tweet about new formulae in Homebrew.

Example

See the live action in @HomebrewFormula and @brew_sci. A tweet would be like:

New formula fermikit in Homebrew/science https://github.com/lh3/fermikit http://arxiv.org/abs/1504.06574 #bioinformatics

For new formulae in Homebrew/science, the tweet will contains tags and DOI references if they are available.

Configuration

For Homebrew official Taps

The bot is running on Heroku. To enable this bot for new tap:

  • Goto the repository settings > Webhooks & Services > Add webhook.
    • Add payload URL(https://tweetbrew.herokuapp.com/payload) and secret.
    • Choose "Just the push event" in "Which events would you like to trigger this webhook?".
  • Edit app/tweetbrew/config.rb, add an entry to TWITTER_ACCOUNT_MAP.
  • (optional) To enable new twitter account:
    • Goto https://tweetbrew.herokuapp.com/ to login in your twitter account.
    • Goto heroic app settings page, add the two tokens acquired above in "Config Variables" panel. The corresponding variable key should be TWITTER_ACCESS_TOKEN_{ACCOUNT_NAME} and TWITTER_ACCESS_TOKEN_SEC_{ACCOUNT_NAME}. Where the {ACCOUNT_NAME} should be the twitter account name in capital form.

For unofficial Taps

Deploy to Heroku

About

🐳 Experimental Twitter bot for Homebrew

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages