Created
May 18, 2012 17:46
-
-
Save jescalan/2726686 to your computer and use it in GitHub Desktop.
Release the shakespearian insults!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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