Skip to content

Instantly share code, notes, and snippets.

@jescalan
Created May 18, 2012 17:46
Show Gist options
  • Save jescalan/2726686 to your computer and use it in GitHub Desktop.
Save jescalan/2726686 to your computer and use it in GitHub Desktop.
Release the shakespearian insults!
# Because sometimes curses are not enough.
request = require 'request'
module.exports = (robot) ->
robot.respond /release the shakespearian insults/i, (msg) ->
request uri: 'http://www.pangloss.com/seidel/Shaker/index.html', (err, res, body) ->
msg.send body.match(/<font size="\+2">\s(.*)<\/font>/)[1].replace(/<br>/, " ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment