ScrappyAcademy / hubot

Sir Scrappy's Personal Assistant
2 stars 1 forks source link

Cheer.coffee is crashing #4

Closed cupakromer closed 12 years ago

cupakromer commented 12 years ago

The heroku logs show this:

2012-10-25T03:51:25+00:00 app[web.1]: /app/node_modules/hubot/src/robot.coffee:499
2012-10-25T03:51:25+00:00 app[web.1]:       return items[Math.floor(Math.random() * items.length)];
2012-10-25T03:51:25+00:00 app[web.1]:                                                    ^
2012-10-25T03:51:25+00:00 app[web.1]: TypeError: Cannot read property 'length' of undefined
2012-10-25T03:51:25+00:00 app[web.1]:     at Response.random (/app/node_modules/hubot/src/robot.coffee:499:52)
2012-10-25T03:51:25+00:00 app[web.1]:     at /app/scripts/cheer.coffee:19:19
2012-10-25T03:51:25+00:00 app[web.1]:     at IncomingMessage.<anonymous> (/app/node_modules/hubot/node_modules/scoped-http-client/lib/index.js:61:20)
2012-10-25T03:51:25+00:00 app[web.1]:     at IncomingMessage.emit (events.js:88:20)
2012-10-2
5T03:51:25+00:00 app[web.1]:     at HTTPParser.parserOnMessageComplete [as onMessageComplete] (http.js:130:23)
2012-10-25T03:51:25+00:00 app[web.1]:     at Socket.socketOnData [as ondata] (http.js:1288:20)
2012-10-25T03:51:25+00:00 app[web.1]:     at TCP.onread (net.js:374:27)