i took out the extra new song event, been meaning to do this for a while. there should really only be one of each type of event anyways, changed the extra event into a function and called it at the end of the first event. should hopefully add more stability and seems to run a little faster too.
changed, this around line 468
bot.on('newsong', function (data)
{
to
global.checkOnNewSong = function (data)
{
and took out the end brackets so this around line 555
i took out the extra new song event, been meaning to do this for a while. there should really only be one of each type of event anyways, changed the extra event into a function and called it at the end of the first event. should hopefully add more stability and seems to run a little faster too.
changed, this around line 468
to
and took out the end brackets so this around line 555
becomes
and added
to the very bottom of the second new song event starting around 562, see the changes here https://github.com/samuri51/chillybot/blob/master/chillybot.js
and compare it to your own script if you don't know what i'm talking about