Closed ThePimento closed 11 years ago
I did remove the whole 'responses' section, just because I want the bot to send songs to Twitter and not much else.
Check your config file. Make sure your bots info and room id are correct. Usually that error is room id. You can also leave all responses and just use the shutup command on the bot.
I double checked it all, even re-installed the entire thing, copying and pasting all the IDs (from the bookmarklet). This time I left all the responses alone, so the only things I changed were: auth, userid, botname, roomid, admin userid, queue: false, consolelog: false, stats: false
Then I added the Twitter and LastFM APIs/keys.
Usually the problem is you are adding "auth+live+" to the beginning of the auth when you should not. You can also try adding it if you are not already.
Agreed that it's not logging in though, which is why the user is undefined.
@DubbyTT removing "auth+live+" on the bot auth worked! Thank you!
Yeah I need to change the example config to not pre include the auth+live+, the other one that I see all the time is people pasting a user id into the room section accidentally, but this is definitely config related.
You're welcome @ThePimento :) This is the one issue that created a lot of grief for me when I first started doing bots.
When I try to run node bin/boombot, I get this error after it loads optional scripts. Any ideas? I haven't even opened the events.js file. Thanks in advance!
**_Loading Optional Scripts_*** Loading: hello.js Loading: meow.js
/Users/xxxxx/Documents/Boombot/node_modules/boombot/lib/events.js:17 for (var i=0; i<users.length; i++) { ^ TypeError: Cannot read property 'length' of undefined at Object.exports.roomChangedEvent (/Users/xxxxx/Documents/Boombot/node_modules/boombot/lib/events.js:17:24) at exports.run (/Users/xxxxx/Documents/Boombot/node_modules/boombot/lib/robot.js:30:52) at EventEmitter.emit (events.js:88:17) at Bot.onMessage (/Users/xxxxx/Documents/Boombot/node_modules/boombot/node_modules/ttapi/bot.js:196:18) at frameType (/Users/xxxxx/Documents/Boombot/node_modules/boombot/node_modules/ttapi/websocket.js:308:30) at process.startup.processNextTick.process._tickCallback (node.js:244:9)