Skip to content

Instantly share code, notes, and snippets.

@sakatam
Last active November 10, 2017 09:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakatam/10f9a98f45fb5ff52e33 to your computer and use it in GitHub Desktop.
Save sakatam/10f9a98f45fb5ff52e33 to your computer and use it in GitHub Desktop.
Hubot script to catch all unhandled messages
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