I am developing a simple “giveaway” extension for my streamer friend.
It will (hopefully) work like this:
- The viewer clicks on the apply button.
- My panel extension which is a React app sends the viewers’ data to an Express ebs which will save into a database.
- When the follower count reaches the desired number, the broadcaster can click on a button, and the ebs will randomly select a user from the database.
My question is how can I achieve that only the broadcaster sees a section on the panel view (the list of the applicants and the button that will randomly select the a user)?
I thought about I could use the Twitch Extension Helper, which has this:
Is it a good idea? Or maybe is there a proper way to do that, for example if the ‘panel.html’ is for the viewers, maybe there could be an another html file only for the broadcaster?