# Listen to chat from the extension panel

**URL:** <https://discuss.dev.twitch.com/t/listen-to-chat-from-the-extension-panel/46967>\
**Category:** Extensions\
**Created:** [August 18, 2023, 3:23am UTC](https://discuss.dev.twitch.com/t/listen-to-chat-from-the-extension-panel/46967 "2023-08-18T03:23:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![unManiac](https://avatars.discourse-cdn.com/v4/letter/u/e274bd/32.png) [@unManiac](https://discuss.dev.twitch.com/u/unManiac)\
**Post date:** [August 18, 2023, 3:23am UTC](https://discuss.dev.twitch.com/t/listen-to-chat-from-the-extension-panel/46967/1 "2023-08-18T03:23:00Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 18, 2023, 10:10am UTC](https://discuss.dev.twitch.com/t/listen-to-chat-from-the-extension-panel/46967/2 "2023-08-18T10:10:46Z")

</div>

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.

> [@unManiac](#):
>
> Is the recommended to use the `tmi.js` inside of the extension or is there a better approach to this?

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