How to make a bot for twitch chat. : Twitch
How to Set Up a Streamlabs Chatbot
You can start your bot while it is live, and activate the viewer list and chat bot features if you wish.
A bot sending a pair of PASS and NICK messages is considered an authentication attempt.
For a simple example that parses messages, see.