This is a Python script that sends a notification to a Discord webhook when a Twitch channel goes live or stops streaming.
To use this tool, you need to have the following:
- A Twitch account with a registered application, which will provide a client ID and client secret. You can register your application at https://dev.twitch.tv/.
- A Discord account with a webhook URL.
- Python 3.x and the requests module installed.
Clone or download the repository.
- Install the requests module by running pip install requests in your command line.
- Open the twitchook.py file in a text editor.
- Replace the empty strings for
client_id
,client_secret
,channel_name
, anddiscord_webhook_url
with your own values.
Save the changes and close the file.
This script is provided as-is and without warranty. Use it at your own risk. The author is not responsible for any damage or loss caused by this script.