This project creates a script that will pull a random product from fate-srd.com and post about it to the @FateSRD twitter account.
The project is based on the advice of http://techknights.org/workshops/nodejs-twitterbot/.
- Node
- Yarn
git clone
this repo andcd
into it.yarn
to install packages- Create a Twitter app, including Access Tokens.
- Add your tokens in Heroku. If you'd like to test locally, enter them into
config/default.yml
. - You will also need to set the source for the json in either
config/default.yml
orconfig/production.yml
, depending on your environment.
- Run
yarn tweet
Deploy to Heroku's master branch.