Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 1.32 KB

README.md

File metadata and controls

64 lines (43 loc) · 1.32 KB

rocites

Heroku robot to tweet new citations using rOpenSci software

what it does

Install

git clone [email protected]:ropenscilabs/rocites.git
cd rocites

Setup

Create the app (use a different name, of course)

heroku apps:create ropensci-rocites

Push your app to Heroku

git push heroku master

Set up env vars

heroku config:set ROCITES_TWITTER_CONSUMER_KEY=key
heroku config:set ROCITES_TWITTER_CONSUMER_SECRET=key
heroku config:set ROCITES_TWITTER_ACCESS_TOKEN=key
heroku config:set ROCITES_TWITTER_ACCESS_SECRET=key
heroku config:set GITHUB_TOKEN_ROCITES=key

Add the scheduler to your heroku app

heroku addons:create scheduler:standard
heroku addons:open scheduler

Add the task rake run to your heroku scheduler and set to whatever schedule you want.

Usage

rake --tasks

new          -- gets new citations (no tweets sent)
run          -- checks for new citations and sends tweet for each
search[doi]  -- find citation matching a doi
delete[doi]  -- delete citation matching a doi