Skip to content

This script is a Twitch chatbot that utilizes the Twitch API and OpenAI API. It uses the Twitch API to connect to a Twitch channel and listen to chat messages, and it uses the OpenAI API to generate responses to chat messages.

Notifications You must be signed in to change notification settings

MagicPotato21/Ai-Twitch-Voice-ChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SETUP

API SETUP

https://dev.twitch.tv/console

1 2 3

Add API KEY

Open Main.py Add API KEYS

APP_ID = 'ADD YOUR TWITCH API ID'

APP_SECRET = 'ADD YOUR TWITCH API SECRET KEY'

USER_SCOPE = [AuthScope.CHAT_READ, AuthScope.CHAT_EDIT]

TARGET_CHANNEL = 'ADD TWITCH USERNAME HERE'

OPENAI API SETUP

https://platform.openai.com/account/api-keys

Open Main.py and add the API key in two spots using the same api key. Make sure to add the API to both spots.

async def on_message(msg: ChatMessage):

print(f'in {msg.room.name}, {msg.user.name} said: {msg.text}')

openai.api_key = "ADD YOUR OPENAI API KEY"

response = openai.Completion.create(

PYTHON SETUP

https://www.python.org/downloads/release/python-390/

simply download and install, then open the Command Prompt (CMD). Navigate to the folder where the Main.py file is located using the CD command. Then, run the command pip install -r requirements.txt to install the required packages. Finally, run the Python script and the AI voice chatbot will be ready to use!

About

This script is a Twitch chatbot that utilizes the Twitch API and OpenAI API. It uses the Twitch API to connect to a Twitch channel and listen to chat messages, and it uses the OpenAI API to generate responses to chat messages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages