This is a very simple script that takes the file subscriber-list.csv which you can download from Twitch Analytics and adds all of the usernames to a txt file separated by a space.
git clone https://github.com/EpistemicPolymath/updateTwitchSubList.git
cd updateTwitchSubList/
npm install
Add a .env file with the following values. If you do not need a value simply leave it blank.
# File Locations
SUBLISTCSV=""
SUBLISTTXT=""
# Streamer Account
STREAMER=""
# Bot Account
BOT=""
node main.js
I could make it so that it works with the Twitch API - GET Broadacast Subscriptions and grabs the list from there to completely bypass the need to download the csv file each time. For now this works for me. I can definitely expand upon functionality in the future.