Closed mnafricano closed 11 years ago
From what it looks like in the code, it's not connecting to the room, which is why it's getting an error. The "name" is the name of the room you're registering in. I would double check and make sure the roomid is accurate.
Thanks man, Turntable.FM is being tricky and won't let two accounts on a server at the same time. It's something new that they do now and I don't know how to get around it other than to have the bot on a remote server.
If you were putting a bot on a server, what free server business would you use? AppFog?
Thanks!
are you saying you can't have your main account logged in and your bot running from command line at the same time? they are two different accounts right?. i'm only asking because i just tested it and i can have both of my accounts on at the same time. make sure that when you use the alan gilbert bookmark that your logged in as your bot in the room that you want to log into. another thing to make sure of is that there are no spaces before or after your room id as they will be literally processed and it won't work. also make sure that you installed the ttapi in the same folder as the chillybot.js file. let me know if this works for you. as far as appfog goes, yes it works fine, thats what i use to host my bot :D
an example room id would look like this, double check you userid and auth are correct as well, remember no spaces!
var ROOMID = '5177a500df5bcf448bf82d0e';
Yeah, that's exactly what I'm saying. They are two different accounts. That's weird the you are able to run your bot and your account at the same time. Do you know of any server that I could host my bot on?
Never mind, I guess it was just my account acting up. I'm good to go now, and if you'd like, you can test my bot here.
Although, I still would like to perhaps run my bot from a remote server, if that would be possible.
Thanks for chillybot.js!
glad its working for you :), hope u like it
When I run
node chillybot.js
in Terminal on my Mac, Terminal returns the following:The only changes I've made to my
chillybot.js
file are the following:The following is a screenshot of my Terminal window displaying the error message
Thanks in advance.