Skip to content

Instantly share code, notes, and snippets.

@stevenklise
Created January 10, 2012 19:39
Show Gist options
  • Save stevenklise/1590719 to your computer and use it in GitHub Desktop.
Save stevenklise/1590719 to your computer and use it in GitHub Desktop.
Hubot script to take a phrase and make it true.
# 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