Skip to content
Send cat factz to your friends every hour using the Twilio API. (developed for the ballmerpeakathon.com programming competition)
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.idea
.sass-cache/cbf6014f76ad3e83f7c3d3853f309a445da182d5 Fix bubbles
app
config
db Now with even MORE cat facts
doc
lib
log
public
script
test
vendor Initial commit
.DS_Store
.gitignore
Gemfile
Gemfile.lock
LICENSE Added license
README.rdoc Updated README
Rakefile Initial commit
config.ru Initial commit
crontab.txt Added methods for sending of facts via cron.

README.rdoc

Cat Factz

Written by Mark Percival (@mdp) and Jim Jones (@aantix)

Send fun cat factz every hour for your friends using the Twillio API. App written for the Ballmer Peak-A-Thon (5/12/2012) programming contest. ballmerpeakathon.com

Config

  • Update the config/initializers/twilio.rb file with your own Twilio API key.

  • To record the SMS messages that users respond back with :

- If you're running locally, setup a localtunnel with localtunnel.io localtunnel -k ~/.ssh/id_rsa.pub 3000 - Config Twilio to post back to the URL provided by localtunnel (e.g. 4u8s.localtunnel.com/transmit_cat_facts/incoming)

  • Setup the cron process (to send the repeat cat factz).

*/60 * * * * cd /Users/aantix/dev/cat_factz && bundle exec rails runner -e development “User.cron_send_facts” 2>&1 >> /tmp/cat_factz.log

Screenshots

Something went wrong with that request. Please try again.