irisrumtub / GPT-Twitch-Chatbot

Chat bot for Twitch that uses OpenAI's completions to respond with.
23 stars 12 forks source link
ai chatbot openai twitch

Twitch chat GPT Completion Bot

app preview

This bot allows users to query GPT-3 completions inside a Twitch chat. Simply type !ai <text-to-complete> and the bot will respond with a completion generated by GPT-3. You can either run pre-built latest executable for windows or run from source code or build your own executable.

Latest .exe file that you can download and run

twitchGPTbotwin64.7z

Requirements

Installation

Clone this repository to your local machine:

git clone https://github.com/vodkabydlo/GPT-Twitch-Chatbot.git

Then get to the directory the bot is in and install all dependencies:

npm install

To run the app from terminal

npm run start

to build a standalone .exe

npx electron-builder build --win portable

Usage

One token is approximately 4 characters in english language. All other languages are more expensive and therefore with a set amount of tokens replies in other languages will be shorter.

Set amount of tokens in the app to set maximum amount of tokens to be spent on each completion. I found it perfect between 50 and 200 tokens. Less tokens you spend the dumber and shorter responses will be, so for clever responses use 150-200.

Twitch messages are limited in characters (approx. 500). The bot will split messages if OpenAI's reply is too long and split

To query a GPT-3 completion, simply type !ai <prompt> in the Twitch chat. The bot will respond with a completion generated by GPT-3.

For example, if you type !ai The quick brown fox jumps over the lazy dog, the bot might respond with The quick brown fox jumps over the lazy dog, but then it turns around and jumps back again just for fun.

Disclaimer