github/hubot — pull request #93 by baloo (2011-10-28 13:16:06+00:00)
Title: Script hot reloading

you have to adapt scripts a bit to enable this feature:

```coffeescript
# Returns bar when you write foo
#
# foo - returns bar

module.exports = (robot) ->
robot.respond /foo/i, __filename, (msg) ->
bar msg, (rsp) ->
msg.send rsp

bar = (msg, cb) ->
cb "bar"

```

All the magic comes with the __filename parameter :)

It does _NOT_ handle new files nor file deletion. It think it's not that hard to add such features