# I'm interested in creating extension

**URL:** <https://discuss.dev.twitch.com/t/im-interested-in-creating-extension/19178>\
**Category:** Extensions\
**Created:** [December 22, 2018, 2:55pm UTC](https://discuss.dev.twitch.com/t/im-interested-in-creating-extension/19178 "2018-12-22T14:55:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bizye](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bizye](https://discuss.dev.twitch.com/u/bizye)\
**Post date:** [December 22, 2018, 2:55pm UTC](https://discuss.dev.twitch.com/t/im-interested-in-creating-extension/19178/1 "2018-12-22T14:55:15Z")

</div>

For my extension I need to get every new message in the chat.  
How can I do that?

I thought about doing this with js and doing a loop and getting all the messages in the chat (because I have access to the page source), but thats seems wrong is there any better way of doing that?

---

<div class="post-metadata">

**Author:** ![Altoar](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/altoar/32/21452_2.png) [@Altoar](https://discuss.dev.twitch.com/u/Altoar)\
**Post date:** [December 22, 2018, 4:20pm UTC](https://discuss.dev.twitch.com/t/im-interested-in-creating-extension/19178/2 "2018-12-22T16:20:36Z")

</div>

You need a chat bot for that. Take a look at tmi.js

---

<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:** [December 22, 2018, 4:26pm UTC](https://discuss.dev.twitch.com/t/im-interested-in-creating-extension/19178/3 "2018-12-22T16:26:40Z")

</div>

Or make your extension connect to Twitch Chat directly over WebSockets.

A library like TMI.js can help with that, but you could just direct connect and parse yourself
