From d73e85c04da7a47054e513a329dbd9a8560703d2 Mon Sep 17 00:00:00 2001 From: dosse91 Date: Thu, 27 Apr 2017 20:52:46 +0200 Subject: [PATCH] Removed stale meme --- scripts/stallman-bomb.coffee | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 scripts/stallman-bomb.coffee diff --git a/scripts/stallman-bomb.coffee b/scripts/stallman-bomb.coffee deleted file mode 100644 index ade610c..0000000 --- a/scripts/stallman-bomb.coffee +++ /dev/null @@ -1,23 +0,0 @@ -# Description: -# send pictures of Richard Stallman computing across the world -# -# Commands -# hubot stallbomb ... - spam the chat with Richard Stallman -# -# Author: -# Michele Guerini Rocco (rnhmjoj) -# - -cheerio = require 'cheerio' - -url = 'https://stallman.org/photos/rms-working/mid/' - -module.exports = (robot) -> - robot.respond /stallbomb( (\d+))?/i, (res) -> - n = parseInt res.match[2] || 10 - - robot.http(url).get() (err, _, body) -> - if err then return res.send 'error: stallman is not amused' - $ = cheerio.load body - links = (url+$(i).attr 'href' for i in $('a') when $(i).attr('href')[0..2] is 'mid') - res.send res.random links for _ in [1..n] \ No newline at end of file