# HTML \<script\> Development

**URL:** <https://staging-discuss.dev.twitch.com/t/html-script-development/19639>\
**Category:** Game Development\
**Created:** [January 21, 2019, 6:42pm UTC](https://staging-discuss.dev.twitch.com/t/html-script-development/19639 "2019-01-21T18:42:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob\_From\_Oxiclean](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Bob\_From\_Oxiclean](https://staging-discuss.dev.twitch.com/u/Bob_From_Oxiclean)\
**Post date:** [January 21, 2019, 6:42pm UTC](https://staging-discuss.dev.twitch.com/t/html-script-development/19639/1 "2019-01-21T18:42:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 21, 2019, 6:44pm UTC](https://staging-discuss.dev.twitch.com/t/html-script-development/19639/2 "2019-01-21T18:44:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bob\_From\_Oxiclean](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Bob\_From\_Oxiclean](https://staging-discuss.dev.twitch.com/u/Bob_From_Oxiclean)\
**Post date:** [January 21, 2019, 6:51pm UTC](https://staging-discuss.dev.twitch.com/t/html-script-development/19639/3 "2019-01-21T18:51:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 21, 2019, 6:52pm UTC](https://staging-discuss.dev.twitch.com/t/html-script-development/19639/4 "2019-01-21T18:52:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [February 20, 2019, 6:43pm UTC](https://staging-discuss.dev.twitch.com/t/html-script-development/19639/5 "2019-02-20T18:43:00Z")

</div>

This topic was automatically closed after 30 days. New replies are no longer allowed.
