Code Monkey home page Code Monkey logo

getgrass-bot's Introduction

getgrass-bot

This repository contains code for the getgrass-bot, a bot designed to perform WebSocket connections through various HTTP proxies.

Overview

The getgrass-bot bot establishes WebSocket connections using HTTP proxies to a specified WebSocket server. It utilizes the ws library for WebSocket communication and the https-proxy-agent library for proxy support.

Installation

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.
  3. Install dependencies using npm:
npm install

Usage

  1. Open the config.js file in a text editor.

  2. Obtain your user ID from the Getgrass website:

    • Visit https://app.getgrass.io/dashboard.
    • Open the browser's developer tools (usually by pressing F12 or right-clicking and selecting "Inspect").
    • Go to the "Console" tab.
    • Paste the following command and press Enter:
      localStorage.getItem('userId');
    • Copy the value returned, which is your user ID.
  3. Modify the userId variable in config.js with your user ID.

  4. Update the httpProxyList array with the desired HTTP proxy URLs. Ensure each URL is in the format http://username:password@hostname:port.

  5. Save the changes to config.js.

  6. Run the getgrass-bot by executing the following command:

node index.js

Configuration

In the config.js file:

  • Modify the userId variable with your user ID.
  • Update the httpProxyList array with the desired HTTP proxy URLs. Ensure each URL is in the format http://username:password@hostname:port.

getgrass-bot's People

Contributors

dante4rt 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.