Compared two twitch chatbot libraries

https://pypi.org/project/PythonTwitchBotFramework/ and https://github.com/TwitchIO/TwitchIO and we decided on twitchIO because of the cool logo.

Virtual Environment setup

We tried the old school way with venv to set up a virtual environment.

python3 -m venv .
source bin/activate
pip3 install twitchio
pip3 install python-dotenv
pip3 freeze requirements.txt
python3 main.py

New way is to use poetry.

poetry init  # for our existing folder
poetry add twitchio
poetry add python-dotenv
poetry install

# running stuff with:
poetry shell
python main.py
exit

# alternatively run with:
poetry run python main.py

Google Cloud notes

Turns out we cannot be a Google Cloud organization and I cannot create my own org because I think this is a paid feature with Google Workspace? Shrug. I think this is okay as long as the Billing is set up.

Task completed

  • Created a Twitch chat bot in Python using the twitchio library
  • Save Twitch chat code to a private repo on Github (typescript and python branches)
  • Save Hugo site to a private repo on GitHub
  • Look into Poetry environment management in Python (see https://python-poetry.org/docs/managing-environments/)
  • Installed gcloud and ran gcloud init
  • Created a Google Cloud Storage bucket (region: OR at $0.02 per GB)

Future work

  • Deploy Hugo site with Google Cloud Storage (See: https://gohugo.io/hosting-and-deployment/hugo-deploy/)
  • Use pyaudio interactions with python chatbot
  • Text to speech for python chatbot
  • Try out Dialogflow again (TypeScript version? and/or Python version)
  • Saving stuff into Firestore (revive this)
  • Revive Discord bot