ดึงข้อมูล chatlog ไปยัง VOD Twitch จากบรรทัดคำสั่งของคุณด้วย twitch-chatlog

คำสั่งเล็ก ๆ นี้สามารถดาวน์โหลดบันทึกการแชททั้งหมดไปยัง Twitch VOD ใช้ ID ของ VOD (1111111 หรือคล้ายกัน) เป็นอาร์กิวเมนต์เท่านั้น หากต้องการเรียนรู้เกี่ยวกับการใช้คำสั่งให้ใช้ twitch-chatlog -h
เอาต์พุตสามารถเลือกสีด้วย -c หรือ --color หรือโดยการตั้งค่าตัวแปรสภาพแวดล้อม TWITCH_CHATLOG_COLOR
ในการใช้ประโยชน์จากรหัสไคลเอนต์แอปพลิเคชัน Twitch ของคุณเองคุณอาจระบุเป็นตัวเลือกบรรทัดคำสั่ง -C หรือ --client-id หรือตั้งค่าตัวแปรสภาพแวดล้อม TWITCH_CHATLOG_CLIENT_ID ค่าเริ่มต้นสำหรับรหัสลูกค้าไม่ได้รับประกันว่าจะทำงานที่ผ่านมาเมื่อวันที่ 08 ส.ค. 2559 ซึ่งในกรณีนี้คุณจะต้องจัดหาของคุณเอง
ในการควบคุมส่วนหนึ่งของบันทึกการแชทเพื่อดึง --start --length และ --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.
โปรแกรมนี้ใช้ Twitch API ที่ไม่เป็นทางการซึ่งอาจหยุดทำงานได้ทุกจุด นอกจากนี้ยังอาจส่งคำขอจำนวนมากอย่างต่อเนื่องอย่างรวดเร็วซึ่งอาจนำไปสู่การใช้มาตรการ Twitch กับมันและทำให้โปรแกรมและ/หรือประสบการณ์ Twitch ของคุณลดลง