A Python script that automatically starts a restream of a Twitch stream using OBS
Twitch Restream Bot is A Python script that automatically starts a restream of a Twitch stream using OBS. It uses Twitch's to detect if a channel is live and OBS's Websocket Plugin to send the Start/Stop Streaming Command.
- ✅ Detect if a Channel starts a Livestream
- ✅ Automatically Starts/Stops the Stream in OBS
To start off, please head to the releases page and download the latest release version.
Please make sure to have the OBS Websocket Plugin installed.
Set up your OBS Streaming credentials as you always would and Enable the Websocket Plugin.
Register for a Twitch Developer Account and optain your Client ID and Client Secret.
Open the twitch-restream-bot.py in a text editor of your choice and enter TWITCH_CLIENT_ID and TWITCH_CLIENT_SECRET for Twitch's API, TWITCH_CHANNEL_ID for your Source-Channel ID and OBS_WEBSOCKET_PASSWORD.
Launch the application in terminal using python3 twitch-restream-bot.py
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature-name
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin feature-name
) - Open a pull request
This project is licensed under the MIT License.
- massimo-rnd - @massimo_rnd - hi@massimo.gg
- Project Link - https://github.com/massimo-rnd/twitch-restream-bot
Feel free to reach out if you have any questions or suggestions!