# Where do I start? PubSub, Extension, Bot?

**URL:** <https://staging-discuss.dev.twitch.com/t/where-do-i-start-pubsub-extension-bot/20300>\
**Category:** API\
**Created:** [March 1, 2019, 4:48am UTC](https://staging-discuss.dev.twitch.com/t/where-do-i-start-pubsub-extension-bot/20300 "2019-03-01T04:48:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![estevancarlos](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/estevancarlos/32/5891_2.png) [@estevancarlos](https://staging-discuss.dev.twitch.com/u/estevancarlos)\
**Post date:** [March 1, 2019, 4:48am UTC](https://staging-discuss.dev.twitch.com/t/where-do-i-start-pubsub-extension-bot/20300/1 "2019-03-01T04:48:16Z")

</div>

I am building an interactive video project. Currently it allows people to tweet commands at it and the video and audio will respond to commands. I want to see how Twitch can enhance this experience but I dont know which technology to focus on.

I would like the idea of allowing people in chat to type commands and to be able to count the amount of people doing so. That might be a chatbot. Does that send a JSON that i could access over an http?

Is there a different way i could achieve my goal?

Thanks in advance.

---

<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:** [March 1, 2019, 9:31am UTC](https://staging-discuss.dev.twitch.com/t/where-do-i-start-pubsub-extension-bot/20300/2 "2019-03-01T09:31:51Z")

</div>

> [@estevancarlos](#):
>
> I would like the idea of allowing people in chat to type commands and to be able to count the amount of people doing so. That might be a chatbot. Does that send a JSON that i could access over an http?

Chat is an implementation of IRC over IRC or WS, not JSON payloads over HTTP.

# How to start

Starting with Twitch beings with the docs

> **[Home](https://dev.twitch.tv/docs)**
>
> Live Streaming, Meet Developers.

And you need a ClientID

[https://dev.twitch.tv/docs/authentication/#registration](https://dev.twitch.tv/docs/authentication/#registration)

To do anything you need to be able to tell Twitch who you are and/or which user you are on behalf making requests for, thats authentication, which for Twitch is oAuth

> **[Getting OAuth Access Tokens](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/)**
>
> Getting OAuth Access Tokens

If you then want to go ChatBot. it’s “basically” IRCv3 which is documented here:

> **[Chat & Chatbots](https://dev.twitch.tv/docs/chat)**
>
> Twitch Chat & Chatbots

If you wanted to go Extensions then, what you describe is similar to the Color Changing Hello World Example. Extensions are documented here.

> **[Extensions](https://dev.twitch.tv/docs/extensions/)**
>
> Get started with Twitch Extensions

---

<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:** [March 31, 2019, 9:31am UTC](https://staging-discuss.dev.twitch.com/t/where-do-i-start-pubsub-extension-bot/20300/3 "2019-03-31T09:31:52Z")

</div>

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