Skip to content

A Python Script to stream anime (completely online) and videos to your twitch channel

License

Notifications You must be signed in to change notification settings

Wraient/TwitchParty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwitchParty

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

Installation

Linux

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

The script currently only works in linux environment.

Pre-Requisits

Usage

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:

  1. Search for an anime with !search [anime name]
  2. Select the anime from the results with #[index number]
  3. 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

Edits required in the script

  1. Enter your Twitch username on line 15

  2. Stream Key

    Stream Key can be obtained here

    Enter your Twitch Stream Key on line 16

  3. OAuthToken

    OAuthToken can be obtained here

    Enter your Twitch application token on line 17

  4. (Optional) If you want to add more channels in the whitelist list add it on line 21

About

A Python Script to stream anime (completely online) and videos to your twitch channel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published