Skip to content

Instantly share code, notes, and snippets.

@mileszs
Created February 24, 2014 15:38
Show Gist options
  • Save mileszs/9190628 to your computer and use it in GitHub Desktop.
Save mileszs/9190628 to your computer and use it in GitHub Desktop.
# Description:
# Everything is awesome.
#
# Configuration:
# HUBOT_LESS_EVERYTHINGISAWESOME
#
# Commands:
# awesome | team - reply with everything is awesome thing
module.exports = (robot) ->
awesome = ->
"Everything is awesome. Everything is cool when you're part of a team. EVERYTHING IS AWESOME!"
robot.hear /team|awesome/i, (msg) ->
msg.send awesome()
unless process.env.HUBOT_LESS_EVERYTHINGISAWESOME
robot.hear ///
(\b([A-Z]{2,}\s+)([A-Z]{2,})\b)|
(\b[A-Z]{5,}\b)
///, (msg) -> msg.send awesome()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment