SkillAgentSearch skills...

Contest

Create your own Twitter follower contest

Install / Use

/learn @peterarmstrong/Contest
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

h1. Contest

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

h2. Prerequisites

Two excellent gems:

sudo gem install adamwiggins-rest-client
sudo gem install nokogiri
  • "REST Client":http://github.com/adamwiggins/rest-client
  • "Nokogiri":http://github.com/tenderlove/nokogiri

h2. 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

h2. 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
View on GitHub
GitHub Stars4
CategoryDevelopment
Updated6y ago
Forks0

Languages

Ruby

Security Score

55/100

Audited on Aug 13, 2019

No findings