hipchat/hubot-hipchat — Issue #7: Fetch bot name automatically
Author: powdahound
Created: 2011-12-14 23:26:38+00:00
State: open

[Wobot](https://github.com/cjoudrey/wobot/) now fetches the name of the bot automatically ([change](https://github.com/cjoudrey/wobot/commit/f06598cf3961ba9e9c6323740d8d644ee930e4ae)) and it'd be take advantage of this to make configuration simpler. Unfortunately Hubot core seems very set on knowing the name ahead of time since it builds up the regexes to run on incoming messages ([src](https://github.com/github/hubot/blob/master/src/robot.coffee#L41-67)] at the time scripts are loaded.

Deferring loading of scripts until we've connected would allow this to work but I believe that would require a change in Hubot core.