I have been working on my site, which uses twitch for logins. Part of the site is also supposed to be able to chat as a logged in user. I can log into the site using the login url that I have
(I am aware that I am asking for a lot of scopes. Working on that. )
Considering that, as I have chat:edit, I SHOULD be able to chat as that user yes? Do I have to use the implicit auth flow somewhere as well? Any time that I try to chat using oauth:<access_token> that I get from twitch, the code I want to use to chat doesn’t work, but using a code from Twitch Chat Password Generator (which uses the implicit) works.
as for the what am I doing, I am attempting to build a “program your own bot” site.
Respond to many different inputs and use many different outputs. from chatting in the channel, to changing the title.
Example: Mod drops a strawpoll in the chat. The bot picks it up, reposts it every so often, and after a period of time, announces the winner. The title and or game is then changed to reflect the results.
I originally looked at the list and added what I wanted to eventually add (bit off more than I could chew), but for now I am going to trim it down and just trey to get what I can working, then add as I build up.
Looking at the API, it doesent appear as if the new API has anything like the openid from the V5. What do I use instead? Do I just go with something like chat:edit and assume that, because I have edit permissions, it is a logged in user? It makes logical sense, but it feels less secure than specifying openid.
so, after some digging, I literally just took what twitchapps.com did for scopes (minus the deprecated one) and added them to mine after removing currently unimplemented scopes. Current scopes
“scope=openid+user:read:email+chat:read+chat:edit+channel:moderate”. I am now able to use the key that I get from twitch to chat in chat.