Twitch Clip Bot
Releases »
View Demo
·
Report Bug
·
Request Feature
I am an IT student that took a year off to relieve some stress during covid. Now, I still wanted to program/code some fun stuff. During this year, many clip channels started to boom. The flaw with these channel, though, is that they require someone to download clips and reupload the all manually.
Now, I wanted to make a bot that does this process automatically, thus the idea for ScorchAI. (Scorch is my IGN for most games and AI sounds cool)
ps. the code is ugly, but it works. If you dont like it, make a pull request
Proof of concept (121.000 views per hour on main clip channel):
Download the latest version of ScorchAI and extract the ScorchAI-x.zip / ScorchAI-x.tar.gz. Make sure to read Getting Started.
To get a local copy up and running follow these simple steps.
You need to create an application over at The Youtube Developer Console with the Data APIv3. When you first run your application, you should get a link where you can accept your request.
In the assets folder you should add the following files:
- client_secrets.json
{ "web": { "client_id": "YOUR CLIENT ID", "client_secret": "YOUR CLIENT SECRET", "redirect_uris": [], "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://accounts.google.com/o/oauth2/token" } }
- auth.json
{ "twitch": { "client-id": "CLIENT ID", "client-secret": "CLIENT SECRET", "redirect-uri": "REDIRECT URI", // Probably https://localhost "OAUTH": "OAUTH TOKEN", // This could be empty, then you should run initial_oauth.py once "refresh-token": "REFRESH TOKEN" // Used to reset the oauth token if it runs out (happens like 10x a day) } }
- Clone the repo
git clone https://github.com/ScorchChamp/ScorchAI_name.git
- Install Libraries
pip install -r requirements.txt
This application can be used on multiple channels. But be aware that have a limited amount of quota with the youtube datav3 api.
In assets/categories.json specify which games/channels you want to upload to your channel:
{
"games": {
},
"broadcasters": {
"SCORCHCHAMP": {
"priority": 1,
"min_views": 0,
"real_name": "ScorchChamp",
"parameters": {
"first": "100",
"broadcaster_id": "58251106"
}
}
},
"blacklisted_broadcasters": []
}
Assets/description.txt specifies the default video description. Change this to your liking:
👀 Check that you are subscribed!
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
✅ Socials:
👑 Discord: https://discord.gg/5Z82Tjt
👑 Twitch: https://twitch.tv/scorchchamp
👑 Main Channel: https://www.youtube.com/c/ScorchChamp
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
****If you are this broadcaster, and want this video removed, please let me know in either the comments, my business e-mail or in my discord.****
#ScorchAI #Shorts
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
ScorchChamp - [email protected]
Project Link: https://github.com/ScorchChamp/ScorchAI