Skip to content

pirxthepilot/streamingbot

Repository files navigation

streamingbot

Twitch live stream notifier for Slack

Requirements

  • AWS - this tool is designed to run in AWS and makes use of DynamoDB and Lambda
  • Python 3.10+
  • terraform for deployment
  • awslogs for checking cloudwatch logs

Development

It is assumed that all these are running in a a virtualenv.

To set up:

pip install -r requirements.txt
python setup.py develop

To run the function locally, first set these environment variables:

TWITCH_CLIENT_ID
TWITCH_CLIENT_SECRET
SLACK_WEBHOOK_URL
TWITCH_USERS

then simply:

python bot.py

Deployment

This will package the lambda and kick off terraform deployment.

Create a config.tfvars file in the terraform/ directory using config.tfvars.example as template. Set the values accordingly.

Then run:

make package
make deploy

About

Twitch live stream notifier for Slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published