Twitch Bot ~ Philips Hue system

Well i did remake the “cheer” system to this and now it seems to work fine:

client.on(“cheer”, function (channel, userstate, bt, message) {
console.log(chalk.blue(" Cheers Accepted " + userstate.bits));
if(userstate.bits = 100 && userstate.bits < 999){
bt = “t1”
}else if(userstate.bits = 1000 && userstate.bits < 4999){
bt = “t2”
}else if(userstate.bits = 5000 && userstate.bits < 9999){
bt = “t3”
}else if(userstate.bits = 10000){
bt = “t4”
}
hue.hueLamp(“bit_” + bt);
})

It did now add it into queue and start blinking as it should! :slight_smile:

Anyways thanks for your input :slight_smile:

Thanks

Broccoli