This project is not actively being worked on. While it's still functional, @mt025 has a fork with many improvements.
You might want to take a look at it here: https://github.com/mt025/twitch-drops-lurker
- Clone the repository to your device with
git clone https://github.com/NiciusB/twitch-drops-lurker.git
- Install npm depencencies. First go to the downloaded folder
cd twitch-drops-lurker
, then runnpm install
- Create a
.env
file by copying and modifying the example.env.example
file. For further information, refer to the .env section below - Create a
localStorage.json
file. For the content, runcopy(Object.entries(localStorage))
in the console when having twitch.tv open. This will fill your clipboard and you can paste it directly intolocalStorage.json
- Create a
cookies.json
file. Some of the cookies are not accesible from javascript, so you'll need to export them using the extension EditThisCookie - Start the node process. You could run
node index.js
, but please check the Deploying section below
CHROME_EXEC_PATH
: The path for your chrome executable. In windows it's usuallyC:\Program Files (x86)\Google\Chrome\Application\chrome.exe
, in macOS/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
, and in linux you can runwhich chrome
GAME
: The game you want to lurk. You can get this value by going to Browse -> Your game of choice. Then, copy the ID from the address bar. For example, for Dark Souls III the address bar will behttps://www.twitch.tv/directory/game/Dark%20Souls%20III
, so the GAME value will beDark%20Souls%20III
PORT
: Port for the webserver that allows monitoring the bot's statusSCREENSHOT_INTERVAL
: Interval in seconds between every screenshot. The webserver serves these screenshots for easier debugging
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.