Thanks for the help! I managed to get it working with websockets and the “justinfan” nick.
Just one thing, I’m having problems with it checking the message. I have it set up with a substring to get the message that was typed, and logs that in the console. That works. However, I have an “if” statement checking if the message is equal to a certain value, and if it is, log a different message in the console. In my case, I had it set to something random, which was “1234”. Here’s my Javascript code (or the chunk of it related to the message).
else {
var message = event.data.substr(event.data.indexOf('#madmikegamerxl1 :') + 18);
if (message.toString() == "1234") { // I've also tried without the "toString()"
console.log("Someone just subscribed!");
AdobeEdge.getComposition("subAnim").getStage().play("subalert");
AdobeEdge.getComposition("subAnim").getStage().play("Stage");
}
console.log("Message received in chat 'madmikegamerxl1' : \r\n" + message);
}
(the Adobe Edge bit doesn’t matter right now, it’s just the fact it’s not logging the “Someone just subscribed!”)
Here’s the log of what’s happening in chrome:
:madmikegamerxl1!madmikegamerxl1@madmikegamerxl1.tmi.twitch.tv PRIVMSG #madmikegamerxl1 :1234
Message received in chat 'madmikegamerxl1' :
1234
Any ideas guys?
Thanks again for all the help.