Warning: Using this on your twitch account may get you banned from twitch, I recommend using a burner twitch account and adding your main account to the scripts whitelist
Youtube Video : https://www.youtube.com/watch?v=aO0ZvWdiuq4 (older version)
This script uses FFMPEG which is a open source tool to stream videos to your Twitch Channel.
This script supports searching for any anime, and playing any anime episode you would want. In future, searching for shows feature would be added.
The searching and retriving of anime urls is done using code sections of ani-cli program
Debian
git clone https://github.com/wraient/twitchparty --depth=1
cd ./twitchparty
sudo apt update && sudo apt upgrade
pip3 install pytz
pip3 install twitchio
pip3 install yt-dlp
sudo apt-get install ffmpeg
Arch Linux
git clone https://github.com/wraient/twitchparty --depth=1
cd ./twitchparty
python -m venv venv
source ./venv/bin/activate
pip3 install pytz
pip3 install twitchio
sudo pacman -Sy yt-dlp
sudo pacman -Sy ffmpeg
After installing you need to edit the script according to your needs, refer to Edits required in the script
After editing, you can run the script with
python3 main.py
-
FFMPEG
Install FFMPEG : https://ffmpeg.org/download.html
-
pytz
pip3 install pytz
-
twitchio
pip3 install twitchio
-
yt-dlp
Install yt-dlp : https://github.com/yt-dlp/yt-dlp/releases
Once the bot is connected to you twitch channel a "Bot Landed!" Message would be sent by the bot in the chat. From there you can
Watch an anime:
- Search for an anime with
!search [anime name]
- Select the anime from the results with
#[index number]
- Start Any episode you want with
@[episode number]
- Stop episode to play later with
!end
- Mark episode as completed with
!cp
- Quit the bot without any saving in database
!quit
- Add nickname to currently playing anime
!nickname [nickname]
Watch youtube Video:
- Just send
!yt [youtube link]
Resume an anime
!continue [anime name / saved nickname ]
Miscellaneous:
- Ping the bot
!ping
- Show watched db
!db
- Ask for help
!help
-
Enter your Twitch username on line 15
-
Stream Key
Stream Key can be obtained here
Enter your Twitch Stream Key on line 16
-
OAuthToken
OAuthToken can be obtained here
Enter your Twitch application token on line 17
-
(Optional) If you want to add more channels in the whitelist list add it on line 21