samuri51 / chillybot

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

Bug Alert #37

Closed ghost closed 11 years ago

ghost commented 11 years ago

I just encountered a bug on my chillybot, Chillster. When he said a phrase from the phrase database that I coded into him(the same phrase database from VeggieBot), while on the dj stage in autodj mode, he jumped off the stage.

Edit: Just encountered another bug where Chillster thinks Avalon is a banned artist, when I didn't put it in the banned artists array.

samuri51 commented 11 years ago

thanks for bringing this to my attention, do you have the latest version or are you using an older version? i know the old version of artist banning was buggy because it would match partial words instead of just the whole word. and i realized that the bot was getting off stage mid song the other day if that's what you mean? the autodj thing should be fixed. if you are not using the latest version then try that and let me know if you are still experiencing these problems.

samuri51 commented 11 years ago

i would test just those things you mentioned before putting all your code into it, just an fyi

ghost commented 11 years ago

ok :). I was using a older version, that was updated on August 9, 2013.

samuri51 commented 11 years ago

can you add this line to the banned artist matching around line 968 right before bot.remdj. then when it matches avalon tell me what the console says? should give a clue into whats happening

console.log('artist name: ' + artist + ', song name: ' + song);
ghost commented 11 years ago

Updated to the latest version of Chillybot, and I got Error: getaddrinfo ENOENT

Stack Trace:

Your code is running at 'http://chillybot.ttcloud.c9.io'. Important: use 'process.env.PORT' as the port and 'process.env.IP' as the host in your scripts! events.js:66 throw arguments[1]; // Unhandled 'error' event ^ Error: getaddrinfo ENOENT at errnoException (dns.js:31:11) at Object.onanswer as oncomplete

samuri51 commented 11 years ago

change this around line 193

bot.listen(randomPort, '127.0.0.1');

to

bot.listen(process.env.PORT,process.env.IP);
ghost commented 11 years ago

the newest version of the chillybot code engine fixed the bugs from earlier that I have mentioned and Chillster is running again like normal.

samuri51 commented 11 years ago

good to hear : )