Omg you are incredibly fast 
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
- Build a basic front-end with auth (connected with Twitch API to get user’s
access_token). - Store user’s
oauth tokenin database and allow dashboard to streamer and moderators. - Add a classic button in dashboard to call the
POST /joinendpoint on server express (aka the bot) to add the bot to the streamer channel. - 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.