Closed jgable closed 10 years ago
I followed the running locally instructions and unfortunately my first try to get Slimer running failed. I get the following error, do you know if I'm missing something?
Starting bot
[Wed May 21 2014 08:29:19 GMT+0200 (CEST)] INFO Disabling brain auto-saving
[Wed May 21 2014 08:29:19 GMT+0200 (CEST)] INFO Brain data retrieved from redis-brain storage
[Wed May 21 2014 08:29:19 GMT+0200 (CEST)] INFO Enabling brain auto-saving
NOTICE from undefined to *: *** Looking up your hostname...
/Users/sebi/Development/sebgie/Slimer/node_modules/hubot-irc/node_modules/irc/lib/irc.js:661
throw err;
^
TypeError: Cannot call method 'toLowerCase' of undefined
at Brain.userForName (/Users/sebi/Development/sebgie/Slimer/node_modules/hubot/src/brain.coffee:113:24)
at IrcBot.getUserFromName (/Users/sebi/Development/sebgie/Slimer/node_modules/hubot-irc/src/irc.coffee:137:33)
at IrcBot.createUser (/Users/sebi/Development/sebgie/Slimer/node_modules/hubot-irc/src/irc.coffee:154:19)
at Client.<anonymous> (/Users/sebi/Development/sebgie/Slimer/node_modules/hubot-irc/src/irc.coffee:299:21)
at Client.EventEmitter.emit (events.js:106:17)
at Client.<anonymous> (/Users/sebi/Development/sebgie/Slimer/node_modules/hubot-irc/node_modules/irc/lib/irc.js:212:22)
at Client.EventEmitter.emit (events.js:95:17)
at /Users/sebi/Development/sebgie/Slimer/node_modules/hubot-irc/node_modules/irc/lib/irc.js:658:22
at Array.forEach (native)
at Socket.<anonymous> (/Users/sebi/Development/sebgie/Slimer/node_modules/hubot-irc/node_modules/irc/lib/irc.js:655:15)
at Socket.EventEmitter.emit (events.js:95:17)
at Socket.<anonymous> (_stream_readable.js:746:14)
at Socket.EventEmitter.emit (events.js:92:17)
at emitReadable_ (_stream_readable.js:408:10)
at emitReadable (_stream_readable.js:404:5)
at readableAddChunk (_stream_readable.js:165:9)
at Socket.Readable.push (_stream_readable.js:127:10)
at TCP.onread (net.js:526:21)
Interesting, how did you get it setup so I can try to reproduce it?
npm install
. runlocal.sh
Seems like a problem with the hubot-irc adapter, but have no fear, I have write access to that repo.
I knew that I'm in good hands here :-). I did the following steps:
npm install -g coffee-script
npm install
. runlocal.sh
Environment: OS X, node 0.10.24, npm 1.3.21
When I add a console.log
I can see that name is undefined
and if I change the offending line to lowerName = name
it seems to work?
No Issue