github/hubot — Issue #245: catchAll doesn't receive unmatched messages when hubot addressed directly
Author: mikebridge
Created: 2012-02-16 22:23:02+00:00
State: open

I'm not sure if I'm using catchAll correctly, but it doesn't seem to receive messages which are addressed directly to hubot.

```coffeescript
module.exports = (robot) ->
robot.catchAll (msg) ->
msg.send "I heard you say #{msg.message.text}"
```

```bash
$ ./bin/hubot
Hubot> qwerty
Hubot> I heard you say qwerty
Hubot> hubot qwerty
Hubot>
```

Am I using this correctly, or is there another way to listen for those messages? I only want to respond to messages that have no matches, but are prefixed with /^hubot/.