Last active
November 10, 2017 09:49
-
-
Save sakatam/10f9a98f45fb5ff52e33 to your computer and use it in GitHub Desktop.
Hubot script to catch all unhandled messages
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
module.exports = (robot) -> | |
robot.catchAll (msg) -> | |
if msg.message.match /// ^#{robot.name}\s /// | |
msg.reply "pardon?" # or whatever |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment