Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #185 from johnnyhalife/master
Browse files Browse the repository at this point in the history
9gag script - boredom killer
  • Loading branch information
tombell committed Dec 2, 2011
2 parents 2fb33f3 + 17136d8 commit a62bf9e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/scripts/9gag.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Random meme from 9gag (9gag.com)
//
// 9gag - returns a random meme

var memeDomain = "http://9gag.com";

module.exports = function(robot) {
robot.hear(/9gag/i, function(msg){
msg.http(memeDomain + "/random").get()(function(e, r, b) {
msg.send(memeDomain + r.headers['location']);
});
});
};

0 comments on commit a62bf9e

Please sign in to comment.