Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psychedelicshayna/twitch-livestreams-cli
A Ruby script that allows CLI viewing of the current livestream state / metadata of the requested Twitch streamers.
https://github.com/psychedelicshayna/twitch-livestreams-cli
cli command-line command-line-tool twitch twitch-api twitch-data twitch-streamers
Last synced: about 2 months ago
JSON representation
A Ruby script that allows CLI viewing of the current livestream state / metadata of the requested Twitch streamers.
- Host: GitHub
- URL: https://github.com/psychedelicshayna/twitch-livestreams-cli
- Owner: PsychedelicShayna
- License: gpl-3.0
- Created: 2021-02-03T08:42:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-02-03T08:57:11.000Z (almost 4 years ago)
- Last Synced: 2024-10-23T22:19:10.887Z (3 months ago)
- Topics: cli, command-line, command-line-tool, twitch, twitch-api, twitch-data, twitch-streamers
- Language: Ruby
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twitch Livestream Checker
This is a simple Ruby script that retrieves the current livestream metadata of any given list of streamers. This script requires a Twitch API client id and secret to function, neither of which are included. You can find out how to get your own client id and secret by checking out the Twitch API docs : https://dev.twitch.tv/docs/authentication#registrationThis script requires the colorize gem in order to colorize the output (mandatory).
![](screenshots/screenshot1.png?raw=true)## Config
While command line arguments are a way to give required info, you should ideally be using the json config file. You can generate a new config file using `--new-config-file`.
```json
{
"client_id": "",
"client_secret": "","loop_mode": true,
"streamers": [
"xqcow",
"m0xyy",
"5uppp"
]
}
```## Command Line Arguments
`livestreams.rb --help`
```
--help (-h) | This help message.. Shouldn't need an explanation.
--loop (-l) | Don't exit, keep refreshing livestreams every 15 seconds.--new-config-file (-ncf) | Generate a new configuration file template rather than loading from it
('config.json' default, use -cf to change config path)--config-file (-cf) | Specifies the config file path containing default settings (default 'config.json')
If -ncf is specified, this is the path that will be used for the new config.--client-id (-cid) | Required argument -- your Twitch API client ID.
--client-secret (-cs) | Required argument -- your Twitch API client secret.--streamers (-s) | A list of streamer logon names to monitor separated by semicolons ';' e.g. --streamers streamer1;streamer2;streamer3 etc..
Ideally this should be stored in the config file.
```