github/hubot — Issue #200: add msg.done()
Author: atmos
Created: 2011-12-01 09:31:51+00:00
State: open

The original hubot had the ability to block execution of other possibly matching `hear` and `respond` calls. The order of execution was evaluated alphabetically which gets confusing when you have things like `hubot-scripts.json` loading things. I think we should document the load order behavior and reintroduce this feature.

Script evaluation should look something like this:

1. Process scripts in `scripts/` sorted alphabetically.
2. Process scripts in `hubot-scripts.json` in the order they're defined.
3. Process each match until `msg.done` is true.

This would address a lot of the annoying behavior we see in our campfire when hubot responds to all sorts of random shit ending in a `?`.