Created
January 10, 2012 19:39
-
-
Save stevenklise/1590719 to your computer and use it in GitHub Desktop.
Hubot script to take a phrase and make it true.
This file contains 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
# Take arguments and make them a true thing on the internet | |
# | |
# http://true-cause-i-read-it-on-the-internet.net/ | |
# | |
# make true <string> - Add statement to a url on true-cause-i-read-it-on-the-internet.net | |
module.exports = (robot) -> | |
robot.hear /make true (.+)/i, (msg) -> | |
assertion = msg.match[1] or 'cats-are-your-friends' | |
assertion = assertion.split(' ').join('-') | |
url = 'http://true-cause-i-read-it-on-the-internet.net/'+assertion | |
msg.send url |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment