Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

mt025/twitch-drops-lurker

 
 

Repository files navigation

twitch-drops-lurker

Info

This is a "work in progress" fork of NiciusB/twitch-drops-lurker.

This allows you to idle twitch headless without having an additional window open.

Screenshot showing twitch drops lurker

Requirements

  • Google Chrome / Chromium (Other Chromium based browsers such as Brave may work, but are not supported)
  • EditThisCookie chrome extension
  • Node.js / npm

Installation

  1. Clone the repository to your device with git clone https://github.com/mt025/twitch-drops-lurker.git
  2. Install npm depencencies. First go to the downloaded folder cd twitch-drops-lurker, then run npm install
  3. Create a accountname_localStorage.json file in ./userlogins. For the content, run copy(Object.entries(localStorage)) in the console when having twitch.tv open. This will fill your clipboard and you can paste it directly into accountname_localStorage.json. This can be done for mutiple accounts if desired
  4. Create a accountname_cookies.json file in ./userlogins. Some of the cookies are not accesible from javascript, so you'll need to export them using the extension EditThisCookie
  5. Start the node process. You can run node index.js
  6. Use the web interface to create idlers

Creating idlers using the web interface

  • Name - Name of the idler only use (A-Z,a-z,0-9,_,-), no spaces
  • Game Name - Name of the game you wish to idle. Check the box to idle any game. Used for search and to validate the streamer is still playing the specified game. Names should be as they appear on twitch. e.g. Tom Clancy's Rainbow Six Siege
  • Idler Drops Type - Used to make sure you are still watching a stream that is dropping
    • New: for games tagged as 'drops enabled' Screenshot showing new drop type
    • Legacy: Older style without tag but with a message under the stream: Screenshot showing Drops enabled! Watch for a chance to earn loot
    • None: Ignore drop status
  • Account - Selected account to use to idle for this idler as created in step 4-5 above
  • Streamer list - A list of stramer names to idle, rather than finding a random streamer, split by new line
  • Autostart - Automatically start when the node process is started
  • Channel Points - Automatically claim channel points

Screenshot showing edit

Node options

  • node index.js for default operations
  • node index.js 5005 to select a port
  • node index.js 5005 false to run in headed mode

Deploying

We recommend using a tool like pm2 to manage your node process. It will automatically launch on boot, recover from errors, and save logs and crashes to disk.

About

Get twitch drops without the hassle of having a tab open

Resources

Stars

Watchers

Forks

Languages

  • JavaScript 76.1%
  • HTML 20.9%
  • CSS 2.9%
  • Shell 0.1%