Listen to chat from the extension panel

Only double checking, I know about the window.Twitch.ext.listen, but I actually want to listen to the live chat IRC and depending on the message it should change a behavior in the extension. Is the recommended to use the tmi.js inside of the extension or is there a better approach to this?

Since extensions are just websites you can use any web permitted method to connect to chat and consume chat information.

My preference is my EBS will connect to chat and filter out what I need and send the scoring data to the extension instead.

Saves each viewer being connected to chat twice.

Use whatever library you want, I wouldn’t use it myself.

1 Like