How to add "users" to your bot?

Omg you are incredibly fast :grinning_face_with_smiling_eyes:

Okay if I understand well, my script is working fine as long as it does not crash or as long I don’t need to add someone else. So to add dynamically users, I do need to build an express server with a POST endpoint like https://my-bot-url.com/join.

So I have to create an application

To sum up

  1. Build a basic front-end with auth (connected with Twitch API to get user’s access_token).
  2. Store user’s oauth token in database and allow dashboard to streamer and moderators.
  3. Add a classic button in dashboard to call the POST /join endpoint on server express (aka the bot) to add the bot to the streamer channel.
  4. Add another classic button in dashboard to call a https://my-bot-url.com/leave to make the bot leave the channel.

Am I right ?

Another question : as I’m working on a Twitch bot, do I have to use a realtime database (like Firebase), or a classic sql is enough ?

I went looking EventSub documentation and I think I will try to connect with websockets but as I don’t really need to be aware if the stream has started or not, I won’t do it in this first step.