Skip to content

infinisil/random-twitch-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Twitch Stream

A script to play random twitch streams for a given game and language, unbiased towards viewer count!

Usage

To use the Twitch API, you need to create a Twitch Application on https://dev.twitch.tv/console/apps/create and put the client credentials in ./personal.nix as such:

{
  id = "<your application client ID>";
  secret = "<your application secret>";
}

Then build it:

$ nix-build

And run it:

$ result/bin/random-twitch-stream
What game [empty for any game]? minecraft
What language (ISO 639-1 code)? ja
Game minecraft (27471), language ja
Getting streams for minecraft in ja
Finished fetching streams
[cli][info] Found matching plugin twitch for URL https://twitch.tv/777bigangel777
[cli][info] Available streams: audio_only, 1080p60 (worst, best)
[cli][info] Opening stream: 1080p60 (hls)
[plugin.twitch][info] Will skip ad segments
[cli][info] Starting player: mpv

How it works

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published