Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.08 KB

README.textile

File metadata and controls

53 lines (35 loc) · 1.08 KB

Contest

Run a contest to select a random person who follows you on Twitter.

Prerequisites

Two excellent gems:

sudo gem install adamwiggins-rest-client sudo gem install nokogiri

Instructions

Clone the repo:

git clone git://github.com/thoughtbot/contest.git

Create a ~/.twitter/credentials.yml file. This file contains your Twitter credentials. For example:

name: thoughtbot password: slainte

Run the program:

rake contest

The output will be:

authenticating, caching followers… (this may take a moment) and the winner is… grossberg

Optional

Create a ~/.twitter/ineligible.yml file. It contains a list of followers who are not eligible to win the contest, such as employees of your company. For example:

ineligible: - cpytel - jyurek - jankowski - tsaleh - croaky - joeferris - mikeburns - cssboy - kevinburg - jayunit - qrush - umbrellatoday - widgetfinger