So, Ive been getting more and more into doing live streams with my friends and followers.
I’m also making a game that I wanted it to show when I was actively streaming so hopefully they could chime in my chat. I made this super bare bones function so it will show if you are actively live streaming.
You are welcome to use it. Once I am complete with my GUI with this included I will post an update.
So how it works:
I’m using Twitch’s new Helix API to login as myself along with their improved developer Applications
Lets get right into it!
To create an Application.
- Name it whatever you feel like.
- Under your redirect URL, put in your main https://twitch.tv/YOURCHANNEL.
- Category: Game Integration
- Create it.
Now go back and manage said application you just created and put it in the variable I have listed as key
I made the variables self-explanatory, client id, and client secret; however, to get the client secret you need to do the human check then click “New Secret”, from there you will have a small dialog box giving you the code. DO NOT GIVE YOUR CLIENT SECRET OUT!
Furthermore, you’ll want to put your channel name under the variable ch_name
Run this as a server-sided script with HttpService on.
Also a note
Since Twitch’s helix api resets is cache every ~5 minutes or so. You need to be streaming for at least 6 minutes for this function to pick it up! (Or be very lucky and have you stream update right before their caching servers clear)
Heres a picture of the public key and where it should be.
UPDATED FROM INITAL POSTING!!!
Since the initial posting Twitch has updated their OAuth / Helix API back in April 2021; thus I have been working on an updated module which you will be seeing here. Module linked down below.
Twitch Helix API 2.3.rbxm (4.3 KB)
I have an example of what you want your module / script to look like; very basic simple things with this new module as I want everyone to be able to use it
You are more than welcome to message me on Discord with any questions, comments, or concerns.
12GaugeNick#9116 You can also find my on the official ROBLOX Discord / DevForum Discord.