#TwitchIntegration - Unity

1 messages · Page 1 of 1 (latest)

thick dove
#

Hello, I have the Twitch Integration and Twitch Authentication assets and am trying to get to the point where i can have twitch chat appearing in game.

I can get a token back using the authentication and then i paste it into the TwitchIntegrationExample scene and hit connect.

I get a message back saying: "[Twitch Chat]Client connected and ready to serve" but also: "[Twitch Chat]< FROM IRC: :tmi.twitch.tv NOTICE * :Login unsuccessful"

I get a bunch of ERR_BADAUTH messages, but read in the docs that it should still work with chat

But when i type messages into the twitch stream chat, i don't see anything happen in game.

Ive put my channel name in, and it is getting back a channel ID, and I created an application on the twitch developer console, put the client ID into the box in the component.

Is there anything obvious I am missing? I am pretty new to twitch

grim musk
#

login unsuccessful means the credentials you provided to the chat library was wrong

#

did you pass the login name and oauth token? Or userID? The chat needs the login name

#

Also regarding "display": First things first: Did you implement any logic to actually display the chat?

thick dove
#

so was expecting the chatView textbox to display something, or a message to come back in the console

grim musk
#

Ah I see

thick dove
#

I put in my channel name, and OAuth token

grim musk
#

Fpr authentication, are you using a ScopeSet mor custom scopes? If custom scopes, did you download the library more than about a week ago? We had an issue with custom scopes, resolved in the last release

thick dove
#

got the helper set to implicit flow

#

ive not heard of a ScopeSet

#

and i got the assets about 3 days ago

grim musk
#

Out of my mind: request.RequestScopes(ScopeSet.Chat) before calling authetnicate

#

could also be ChatEdit or something similar

thick dove
#

ok, i will try it - thank you

#

ScopeSet.ChatReadWrite?

thick dove
#

thats done it ⭐

grim musk
#

perfect! 🙂

#

was that missing in our example somewhere?

thick dove
#

i will check

#

It looks like its there in the best practices AuthenticationManager.cs

#

but not in the All Flows in the Nutshell / TwitchAuthExample

#

unless ive edited it

#

which i might have

#

ive reimported it - looks like not there in that example

#

All good though - thank you

grim musk
#

but something we can impprove. Thanks for reporting!