You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Create a new empty GameObject and add the `Twitch IRC` component.
42
-
3. In the inspector, set your Twitch authentication details (OAuth, username, channel)
43
-
You can generate an OAuth token at https://twitchapps.com/tmi/
44
-
OAuth and username are not needed if `Use Anonymous Login` is enabled.
45
-
4. Make sure `Connect On Start` is enabled and press play – You should now see JOIN messages, etc. in the console.
46
-
5. To start handling chat messages, add a listener to the `IRC.OnChatMessage` event. The listener will receive `Chatter` objects which contain information about the chat message, such as the chatter name, message, emotes, etc...
43
+
3. In the inspector, set your Twitch details (OAuth, username, channel)
44
+
- You can generate an OAuth token at https://twitchapps.com/tmi/
45
+
- Alternatively you can enable `Use Anonymous Login` to use without OAuth
46
+
4. Make sure `Connect IRC On Start` and `Join Channel On Start` are enabled and press play – You should now see JOIN messages, etc. in the console.
47
+
5. Create a new script that has a listener for the `IRC.OnChatMessage` event.
48
+
- See <ahref="https://github.com/lexonegit/Unity-Twitch-Chat/blob/main/Unity-Twitch-Chat/Assets/ExampleProject/ListenerExample.cs">ListenerExample.cs</a> for reference.
49
+
- The listener will receive `Chatter` objects which contain information about each chat message, such as the chatter name, message, emotes, etc...
47
50
48
51
<i>Having issues? Check out the included ExampleProject for a better understanding.</i>
49
52
50
53
## Example project
51
54
Spawn chatters as jumping boxes. Box color is based on their primary badge.
0 commit comments