adam10603 / ChatScraper

A Node.JS command-line tool for quickly searching the chat logs of Twitch VODs.
MIT License
7 stars 1 forks source link

Error when piping output into a file #1

Closed pointydev closed 1 year ago

pointydev commented 1 year ago
[pointy@pointy ChatScraper]$ node scrape_chat --dict="You are unable to participate in this channel" --vods-from=psp1g --max-vods=10 --print-links --plain > pspbanned.txt
/home/pointy/tools/ChatScraper/scrape_chat.js:376
            process.stdout.clearLine();
                           ^

TypeError: process.stdout.clearLine is not a function
    at ChatDownloader.<anonymous> (/home/pointy/tools/ChatScraper/scrape_chat.js:376:28)
    at ChatDownloader.emit (node:events:513:28)
    at retrieveData (/home/pointy/tools/ChatScraper/utils/twitch/chat_downloader.js:166:38)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 0)
    at async ChatDownloader.getChatReplays (/home/pointy/tools/ChatScraper/utils/twitch/chat_downloader.js:172:14)

Node.js v18.16.0

This error does not occur when outputting to the terminal.

Thanks, pointy

adam10603 commented 1 year ago

i didnt even realize people can post issues, i never check these 💀 good thing i just noticed. ill fix this in a bit.

adam10603 commented 1 year ago

fixed in v1.1.1