HTML <script> Development


#1

I am developing a website using the tag. Is it possible to integrate a twitch chat bot inside of a script tag? (either by putting the code inside or by calling a .js file.) Any help would be grateful.


#2

Theoretically yes.

Is it a good idea, probably not. It’s fine for anonomous access to Twitch Chat, but if you intend to login to send messages it is a concern as you will/could leak your private token for login to chat.


#3

Thanks for the fast reply! I did not think of that. If it works I may just have it not send messages.


#4

As long as it’s basically read only then you won’t have a “leak”

Then you are basically reimplimenting Twitch Chat iframe embed in your own code. So it’s just a websocket connection and a parser. Pretty straight forward