A small app based on Puppeteer to watch Twitch and get drops.
- Login via cookies
- Using multiple accounts
- Auto-claim drops
- Auto-find new streamers
- To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer.
- From your command line
#Clone this repository
git clone https://github.com/awekrx/AFK-Twitch-drops.git
cd AFK-Twitch-drops
npm ci
-
Get twitch account token
- Login to Twitch account
- Open Inspector(F12) on site
- Find cookie storage
- Copy
auth-token
value
Disclaimer: If you are using multiple accounts. Open them in incognito mode and don't log out of the session, just close the incognito browser.
-
Paste the token in the
config.json
file in the tokens field (Select the tokens separated by commas if you want to view in multiple accounts) -
Copy the path to the browser chrome or chromium and paste it into the exec field in the
config.json
-
Write the name of the desired in
game
game if you need drops. -
Write in command line in this folder:
npm start
{
//Path to Chrome
"exec": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
//Account tokens
"tokens": [""],
//The parameter is needed to receive drops.
"game": "The Cycle: Frontier",
}