twitch chatlog
v7.0.0
用twitch-chatlog從您的命令行中獲取chatlog到Twitch VOD。

這個小命令可以將整個聊天日誌下載到Twitch VOD。它將VOD的ID(1111111或類似)作為參數。要了解命令的使用情況,請使用twitch-chatlog -h 。
可以選擇將輸出與-c或--color或通過設置環境變量TWITCH_CHATLOG_COLOR 。
要使用自己的Twitch應用程序客戶端ID,您可以將其提供為命令行選項-C或--client-id或設置環境變量TWITCH_CHATLOG_CLIENT_ID 。客戶ID的默認值不能保證在2016年8月8日以前工作,在這種情況下,您必須提供自己的默認值。
為了控制聊天日誌的一部分以獲取--start , --length and --end可以使用。請參閱下面的使用部分。默認情況下,命令只會獲取聊天日誌的前十分鐘,以最大程度地減少請求的數量。
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.
該程序使用非官方的抽搐API,該API可能在任何時候停止工作。它也有可能快速連續地發送很多請求,這可能會導致抽搐採取措施,從而減少程序和/或您的抽搐經歷。