Giter Site home page Giter Site logo

twitch-drops-lurker's Introduction

Deprecation

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

twitch-drops-lurker

Installation

  1. Clone the repository to your device with git clone https://github.com/NiciusB/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 .env file by copying and modifying the example .env.example file. For further information, refer to the .env section below
  4. Create a localStorage.json file. 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 localStorage.json
  5. 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
  6. Start the node process. You could run node index.js, but please check the Deploying section below

.env

  • CHROME_EXEC_PATH: The path for your chrome executable. In windows it's usually C:\Program Files (x86)\Google\Chrome\Application\chrome.exe, in macOS /Applications/Google Chrome.app/Contents/MacOS/Google Chrome, and in linux you can run which 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 be https://www.twitch.tv/directory/game/Dark%20Souls%20III, so the GAME value will be Dark%20Souls%20III
  • PORT: Port for the webserver that allows monitoring the bot's status
  • SCREENSHOT_INTERVAL: Interval in seconds between every screenshot. The webserver serves these screenshots for easier debugging

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.

twitch-drops-lurker's People

Contributors

niciusb avatar mt025 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.