Created
February 24, 2014 15:38
-
-
Save mileszs/9190628 to your computer and use it in GitHub Desktop.
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
# 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