Ambil chatlog ke Twitch VOD dari baris perintah Anda dengan twitch-chatlog .

Perintah kecil ini dapat mengunduh seluruh log obrolan ke VOD Twitch. Dibutuhkan ID VOD (1111111 atau serupa) sebagai hanya argumen. Untuk mempelajari tentang penggunaan perintah, gunakan twitch-chatlog -h .
Output secara opsional dapat diwarnai dengan -c atau --color atau dengan mengatur variabel lingkungan TWITCH_CHATLOG_COLOR .
Untuk memanfaatkan ID klien Aplikasi Twitch Anda sendiri, Anda dapat memberikannya sebagai opsi baris perintah -C atau --client-id atau atur variabel lingkungan TWITCH_CHATLOG_CLIENT_ID . Nilai default untuk ID klien tidak dijamin akan bekerja melewati 08 Agustus 2016, dalam hal ini Anda harus menyediakan sendiri.
Untuk mengontrol bagian log obrolan untuk mengambil, --start , --length dan --end dapat digunakan. Lihat bagian Penggunaan di bawah ini. Secara default perintah hanya akan mengambil sepuluh menit pertama log obrolan untuk meminimalkan jumlah permintaan.
npm install -g twitch-chatlog Fetch the chat log to a Twitch VOD.
Usage: twitch-chatlog <vod_id>
vod_id is the ID from the VOD URL, optionally prefixed with v (deprecated).
Options:
-c, --color Colorize output [boolean] [default: false]
-C, --client-id Twitch application client ID [string] [default: (Client-ID)]
-l, --length Amount of time from the log to fetch in seconds. Gets
shortened to the VOD length if bigger. 0 loads everything but
is not recommended. The output will run until the next end of
a log fragment. [number] [default: (10 min)]
-s, --start Start time. Can either be a time relative to the VOD start or
actual time. [string] [default: "00:00:00"]
-e, --end End time. Alternative to specifying a length. A time like for
start. [string]
-r, --raw Print the raw JSON output instead of a formatted chat log.
[boolean] [default: false]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
twitch-chatlog 79240813 Load the first ten minutes of chat
for the VOD
https://twitch.tv/ec0ke/v/79040813
twitch-chatlog -c --end 00:15:00 79240813 Load the first 15 minutes of chat
for the VOD and colorize the output.
twitch-chatlog 79240813 Load the chat log until the given
--end=2016-07-20T20:37:44+0000 date.
Program ini menggunakan API Twitch tidak resmi yang mungkin berhenti bekerja di titik mana pun. Ini juga berpotensi mengirimkan banyak permintaan secara berurutan, yang mungkin menyebabkan kedutan mengambil langkah -langkah terhadapnya dan dengan demikian program dan/atau pengalaman kedutan Anda dikurangi.