Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.05 KB

README.md

File metadata and controls

43 lines (30 loc) · 1.05 KB

twitchwebhook-pybot

A simple twitch bot built in Python using the twitchAPI.webhook example here: https://pytwitchapi.readthedocs.io/en/latest/modules/twitchAPI.webhook.html

Install

git clone [email protected]:morais-machina/twitchwebhook-pybot.git
cd twitchwebhook-pybot
pip install --upgrade pip
pip install virtualenv
virtualenv pybot
./pybot/Scripts/activate
pip install -r requirements.in

Run

If running locally, be sure to uncomment the app.run line

python app.py

Deploy

Create your deployment environment with a cloud service

Many options...

Create environment variables in your deployment environment to populate Secrets

This is usually found in the cloud project's settings

They will end up exposed to your application via these environment variables

username = os.environ.get("username", "")
channel = os.environ.get("channel", "")
client_id = os.environ.get("client_id", "")
client_secret = os.environ.get("client_secret", "")
callback_url = os.environ.get("callback_url", "http://localhost:5000")