I wanted to try a concept of a ChatGPT <-> Twitch proxy in nodeJS.
The concept is pretty straight forward, use a TwitchLib to collect the chat messages from the Twitch Chat, Save them in array, when we reach a limit, simply add them to a prepared string we want to send to ChatGPT and send the request to GPT API, when we receive the answer, simply send it back to the chat.
You can see how it worked live making live conversations within the chat: