github/hubot-scripts — pull request #1132 by stesie (2013-09-12 22:03:44+00:00)
Title: deploy.coffee -- check if bot.Room is defined

Hi there,

the deploy.coffee script doesn't work well with the IRC adapter, since it relies on robot.adapter.bot.Room to be defined (which isn't however).

```
TypeError: Object # has no method 'Room'
at /home/stesie/Projekte/stella/node_modules/hubot-scripts/src/scripts/deploy.coffee:44:7, :24:27
at callbacks (/home/stesie/Projekte/stella/node_modules/hubot/node_modules/express/lib/router/index.js:161:37)
at param (/home/stesie/Projekte/stella/node_modules/hubot/node_modules/express/lib/router/index.js:135:11)
at pass (/home/stesie/Projekte/stella/node_modules/hubot/node_modules/express/lib/router/index.js:142:5)
at Router._dispatch (/home/stesie/Projekte/stella/node_modules/hubot/node_modules/express/lib/router/index.js:170:5)
[...]
```

cheers
stesie