The bot powering the @frequencytoday Twitter account.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Gemfile
Gemfile.lock
README.md
frequency.rb
oauth.rb
twitter_init.rb.sample

README.md

frequencyoftoday-generator

A hacky script for generating daily tweets for today's frequency.

Setup

  1. Signup for a Twitter account
  2. Sign into dev.twitter.com with a phone-number-verified account
  3. Create an application for this generator
  4. Set its permissions to read/write
  5. Use the oauth.rb script to grab OAuth credentials
  6. Create a file named twitter_init.rb in this directory with the OAuth credentials you want to use
  7. Upload to your server
  8. bundle install --path Vendor/bundle
  9. Run it with bundle exec ruby ebook.rb a few times
  10. Schedule it to run daily with cron: 32 9 * * * cd /home/USER/scripts/frequencyoftoday && /usr/local/bin/bundle exec /usr/bin/ruby /home/USER/scripts/frequencyoftoday/frequency.rb