Hello.
I’m developing a small html javascript script to read messages from twitch chat and print stuff in screen. I’m using the websocket example from https://github.com/twitchdev/chat-samples/blob/master/javascript/chatbot.js and creating the oauth token with https://twitchapps.com/tmi/.
Test1
-I open the html page in my preferred browser.
-I access my twitch channel (https://www.twitch.tv/xxxx) and send messages in the chat.
-The script correctly sends messages to chat and reads the messages from chat.
Test2
-I add the html page in OBS (as browser type) and start streaming.
-I access my twitch channel (https://www.twitch.tv/xxxx) and send messages in the chat.
-The script correctly sends messages to chat and reads the messages from chat.
Then I send the html script to a friend (he used his twitch username and generated his own oauth token). He reproduced Test1 and worked fine in his computer. Then he reproduced Test2 and it fails, the script can send messages to chat but can’t read them from chat. The difference between me and him is that my OBS is a regular “OBS studio” and I don’t have any other apps/plugins connected while streaming. On the other hand, my friend uses “OBS.live” and has streamlabs and some bots/stuff running while streaming.
Does that make sense? Can streamlabs be “stealing” the chat messages? Do I need to create the auth token in a different way, like, somehow registering my script in https://dev.twitch.tv?
Sorry if my explanation and/or questions don’t make too much sense, I’m kinda noob in all twitch stuff. Any help or suggestion will be appreciated. Thanks in advance!