{"id":19351591,"url":"https://github.com/hingston/twitch-partner-checker","last_synced_at":"2026-06-17T19:04:32.470Z","repository":{"id":256398317,"uuid":"855124324","full_name":"hingston/twitch-partner-checker","owner":"hingston","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-29T22:39:03.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T15:49:27.877Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hingston.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-10T10:56:57.000Z","updated_at":"2024-09-29T22:39:06.000Z","dependencies_parsed_at":"2025-01-06T15:49:17.822Z","dependency_job_id":"f7d1268e-f632-42a4-9566-69a60d8c835e","html_url":"https://github.com/hingston/twitch-partner-checker","commit_stats":null,"previous_names":["hingston/twitch-partner-checker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hingston%2Ftwitch-partner-checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hingston%2Ftwitch-partner-checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hingston%2Ftwitch-partner-checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hingston%2Ftwitch-partner-checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hingston","download_url":"https://codeload.github.com/hingston/twitch-partner-checker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240460511,"owners_count":19804909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T04:36:41.169Z","updated_at":"2025-11-14T20:09:42.698Z","avatar_url":"https://github.com/hingston.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twitch Affiliate/Partner Checker\n\nA Dockerized Python script that monitors a Twitch streamer to check if they are a Partner or Affiliate. If the streamer is a Partner or Affiliate, the script sends notifications to your Amazon Alexa device and a Telegram chat.\n\n## Table of Contents\n\n- [Prerequisites](#prerequisites)\n- [Setup](#setup)\n  - [1. Clone the Repository](#1-clone-the-repository)\n  - [2. Configure Environment Variables](#2-configure-environment-variables)\n  - [3. Build and Run the Docker Container](#3-build-and-run-the-docker-container)\n- [Files](#files)\n- [How It Works](#how-it-works)\n- [Troubleshooting](#troubleshooting)\n- [Contributing](#contributing)\n- [License](#license)\n\n## Prerequisites\n\nBefore you begin, make sure you have the following:\n\n- Docker and Docker Compose installed on your machine.\n- A Twitch account and [Twitch Developer Application](https://dev.twitch.tv/) credentials (`Client ID` and `Client Secret`).\n- A Telegram bot created using [BotFather](https://core.telegram.org/bots#botfather) and the bot token.\n- Your Telegram `Chat ID` where the notifications will be sent.\n- Alexa \"Notify Me\" skill enabled and an access code obtained from the [Notify Me Skill website](https://notify-me.6apps.com/).\n\n## Setup\n\n### 1. Clone the Repository\n\nClone this repository to your local machine:\n\n```bash\ngit clone https://github.com/yourusername/twitch-streamer-monitor.git\ncd twitch-streamer-monitor\n```\n\n### 2. Configure Environment Variables\n\nOpen the `docker-compose.yml` file and replace the placeholder values with your actual credentials:\n\n```yaml\nversion: '3.8'\n\nservices:\n  twitch-monitor:\n    build: .\n    container_name: twitch_monitor\n    restart: always\n    environment:\n      - TWITCH_CLIENT_ID=YOUR_CLIENT_ID\n      - TWITCH_CLIENT_SECRET=YOUR_CLIENT_SECRET\n      - TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN\n      - TELEGRAM_CHAT_ID=YOUR_CHAT_ID\n      - ALEXA_NOTIFY_ME_ACCESS_CODE=YOUR_ALEXA_NOTIFY_ME_ACCESS_CODE\n      - STREAMER_USERNAME=STREAMER_USERNAME_TO_MONITOR\n```\n\n- **TWITCH_CLIENT_ID**: Your Twitch Developer Application Client ID.\n- **TWITCH_CLIENT_SECRET**: Your Twitch Developer Application Client Secret.\n- **TELEGRAM_BOT_TOKEN**: The token for your Telegram bot.\n- **TELEGRAM_CHAT_ID**: The ID of the Telegram chat where notifications will be sent.\n- **ALEXA_NOTIFY_ME_ACCESS_CODE**: The access code for the Alexa \"Notify Me\" skill.\n- **STREAMER_USERNAME**: The Twitch username of the streamer to monitor.\n\n### 3. Build and Run the Docker Container\n\nTo build the Docker image and run the container, use the following commands:\n\n```bash\ndocker-compose build\ndocker-compose up\n```\n\nThe script will now run inside the Docker container, continuously checking the Twitch streamer's status every 10 seconds. If the streamer is a Partner or Affiliate, it will send notifications to both your Alexa device and Telegram chat.\n\n## Files\n\n- **twitch_monitor.py**: The main Python script that monitors the Twitch streamer.\n- **Dockerfile**: Defines the Docker image with an Alpine-based Python environment.\n- **requirements.txt**: Lists the Python dependencies required by the script.\n- **docker-compose.yml**: Docker Compose file that sets up and runs the service.\n\n## How It Works\n\n1. The script uses the Twitch API to check the broadcaster type of the specified streamer.\n2. If the streamer is a Partner or Affiliate, it sends an announcement to your Alexa device using the \"Notify Me\" skill.\n3. It also sends a message to your specified Telegram chat using the Telegram Bot API.\n4. The script repeats this check every 10 seconds.\n\n## Troubleshooting\n\n- **Missing Environment Variables**: Ensure all required environment variables are set in the `docker-compose.yml` file.\n- **Network Issues**: If the script fails to send notifications, check your network connection and the status of the external APIs (Twitch, Telegram, Alexa).\n- **Docker Issues**: If Docker is not installed or configured correctly, follow the [Docker installation guide](https://docs.docker.com/get-docker/).\n\n## Contributing\n\nFeel free to open issues or submit pull requests if you find bugs or have suggestions for improvements.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhingston%2Ftwitch-partner-checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhingston%2Ftwitch-partner-checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhingston%2Ftwitch-partner-checker/lists"}