samuri51 / chillybot

a turntable bot created by a moderator of straight_chillin11
12 stars 12 forks source link

Can't Start #30

Open ghost opened 11 years ago

ghost commented 11 years ago

Keep getting this error

Cloud9 Error: you may be using the wrong PORT & HOST for your server app
Node: use 'process.env.PORT' as the port and 'process.env.IP' as the host in your scripts. See also https://c9.io/site/blog/2013/05/can-i-use-cloud9-to-do-x/
Error: listen EACCES
at errnoException (net.js:769:11)
at Server._listen2 (net.js:892:19)
at listen (net.js:936:10)
at Server.listen (net.js:993:9)
at dns.js:71:18
at process.startup.processNextTick.process._tickCallback (node.js:244:9)

samuri51 commented 11 years ago

try setting line 184 to this, an of course delete the bot.listen that's already there. if you go here: https://github.com/samuri51/chillybot/blob/master/chillybot.js and look at the line numbers you'll see what i mean.

bot.listen(process.env.PORT, process.env.IP); //needed if running on a server

if that doesn't work i know appfog.com works with the script as - is. sorry never tried to upload to cloud 9 before

samuri51 commented 11 years ago

and make sure it runs on your computer first. the instruction page tells how to do that. let me know if this worked for you...

ghost commented 11 years ago

It worked..then it didn't...it said that it lost connection with turntable.fm...then comes back

ghost commented 11 years ago

I tried it on node.js....said that the there was an error saying that it won't join room due to Type Error: Cannot properly read "name" of undefined

samuri51 commented 11 years ago
  1. as far as it losing connection, did you lose connection? or are you running the bot in two locations at once? if so then they'll battle to try and stay online by continuously disconnecting each other.
  2. that type error is a common problem, make sure auth, userid, and roomid are correct and have no spaces. also of course make sure that your account that your trying to login with is not banned.