/pastabot

A Twitch chat bot that interacts with OpenAI

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

PastaBot
========

A Twitch chat bot that interacts with OpenAI.

Overview
========

  TWITCH CHAT (IRC) <--------------------------------.
  |                                                  |
  hello pastabot                                     |
  |                                                  |
  v                                                  |
  pastabot.py -> OpenAI -> OpenAI response ----------^

How to run pastabot
===================

Edit cred.py, adding your Twitch auth token and your OpenAI API key, as
following:

 # XXX: Put your Twitch auth token here
 TOKEN="oauth:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
 # XXX: Put your OpenAI API key here
 API_KEY='sk-xxxxxxxxxxxxxxxxxxx'

Run the main program:

 $ ./pastabot.py

Plugins
=======

You can implement your own plugins in plugins.py, take a look at the simple
"hello world" plugin (inside plugins.py) as an example.

See also
========

 - OpenAI (https://openai.com)
 - twitchio (https://github.com/TwitchIO/TwitchIO)
 - Pastabot live stream (https://twitch.tv/the_pastabot)