@echo OFF cls color 1b title Twitch Chat Downloader Interface setlocal EnableDelayedExpansion REM This is for easily grabbing the Twitch Chat from VODs using TCD... :: https://github.com/PetterKraabol/Twitch-Chat-Downloader REM Update this file to fix the errors... :: C:\Users\J2897\Code\Python\tcd\venv\Lib\site-packages\twitch\v5\resources\comments.py :: https://pastebin.com/Hu68ir44 REM Activate the virtual environment. set "VENV=%USERPROFILE%\Code\Python\tcd\venv" if exist "%VENV%" call "%VENV%\Scripts\activate.bat" REM Make sure TCD is already installed. tcd --version || echo You need the TCD utility... && echo https://github.com/PetterKraabol/Twitch-Chat-Downloader && goto :End pause REM Set the main variables. set "TAB= " :Start cls set /P "CHANNEL=Streamer name:%TAB%" set /P "VODs=Number of VODs:%TAB%" set "OUTPUT_DIR=%USERPROFILE%\Desktop\Twitch Chat\%CHANNEL%" REM If we want just one VOD, get the VID number. if %VODs% EQU 1 ( choice /c YN /m "Is it the most recent chat?" if errorlevel 2 ( REM Download a specific VOD. set /P "VID=Video ID:%TAB%" tcd --video !VID! --format irc --output "%OUTPUT_DIR%" goto :End ) ) REM Download the requested number of VODs. tcd --channel %CHANNEL% --format irc --first=%VODs% --output "%OUTPUT_DIR%" goto :Start :End endlocal pause REM Deactivate the virtual environment. if exist "%VENV%" call "%VENV%\Scripts\deactivate.bat"