This is a simple Twitch chatbot that generates messages using AI. The bot listens to messages in a specified channel and generates a response based on the input text.
- Make sure you have Python of version 3.10+ installed on your system
- Make sure you know how to work with and run commands in console
-
Download package, then unzip the archive onto your system.
-
Visit the link, select the
Bot Chat Token
option when prompted, and copy theAccess Token
value. -
Run
setup.py
file. This will set all the necessary variables, dependencies, etc. for you. After that you can either choose to add the script to autorun on every system start or manually runmain.py
whenever you want your bot to start working.
- Clone the repository by running
git clone https://github.com/seesmof/twitch-ai-chatbot.git
Or click this link, then unzip the archive onto your system.
- Install the required dependencies by running
pip install -r requirements.txt
-
Visit the link, select the
Bot Chat Token
option when prompted, and copy theAccess Token
value. -
Follow these instructions to set up the necessary variables.
-
Run the bot using the following command:
python main.py
Or by just starting the main.py
executable file on your computer. And you're all set! The bot will work as long as the file is running.
Once the bot is up and running, it will listen to messages in the specified channel (or channels) and generate a response based on the input prompt.
To generate a message, mention the bot in your message by using @<yourBotName>
. The bot will then generate a response based on the input text and send it to the chat.
The bot has a delay between each message of 20 seconds. If you want to change that, go to main.py
file and change the number in brackets on line 25.
Contributions of any kind are welcome! Please check out the contributing guide for more info on how to get started.
This project is licensed under the MIT License.