Examples without depending on unofficial libraries/websites
You should describe how to work with chat without using an unofficial library that is not owned by Twitch.
At the same time you should explain how to get the Oauth Token not using a website that is also not owned by Twitch but uses "Twitch" in it's name, going against the TOS.
-
The "Getting Started" guide for building with Twitch Chat now includes instructions for using the Twitch CLI to get an OAuth token rather than a third-party website. To enable a new developer to have a chatbot running fairly quickly and understand the concept at a higher level, this guide continues to use the tmi.js package in the example.
To provide an example that is not reliant on third-party libraries and dives deeper into the specifics of the protocol, we have added an example chatbot and message parser that leverages a direct websocket connection.