We present a quick-to-configure bot for your Twitch chat based on GPT 4 neural network. The bot consumes tokens to generate responses. Upon registration, you are given 0.05 tokens. Tokens need to be topped up if they run out. This can be done on a separate page Tokens.
The system consists of two pages. The bot parameter settings page
And the widget itself
To get started, go to the parameter settings page, where you will see the setup for your bot. By default, it has no roles. You can see the list of roles below on the page. A role defines how the bot will respond to your viewers in the chat. You can write anything there, adapting it to your needs.
Before setting up the widget, you need to prepare a bot account on Twitch. Create a new account or, if you already have a second account for bots, authorize it on the website /tauth/ in addition to the main channel. Then assign this bot as a moderator on the main channel. Now open the widget. There are only 4 fields. The bot name that it will respond to in the chat. This should be the nickname of your second account. The second field is the trigger word that viewers can use to interact with the bot. The bot will reply when mentioned. This is shown in the video. It remembers up to 10 recent messages from each user.
Then it's simple. Click apply and place the widget code somewhere in OBS or just keep it on a separate browser page. The widget will connect to your chat and wait for interactions. You can test it without streaming on your channel page. But the widget must be open somewhere. If you open the widget window in two different windows, the bot will respond twice.
The bot operates on neural networks where all kinds of prohibited topics like violence, crime, etc. are banned. For such questions, the bot will respond with a standard GPT answer like “please don't be offended, I can't process this kind of question.”