Git Product home page Git Product logo

2b2wts's Introduction

This is in beta and is still being developed, all things described in this readme may not be final!

2b2wTS

2bored2wait TypeScript

A proxy to wait out 2b2t.org's way too long queue. All made in TypeScript!

2b2wTS Version Issues Counter Discord Server

Table of Contents

  1. About The Project
  2. Getting Started
  3. How to use
  4. Configuration

About The Project

This is a rewrite in TS of the very popular 2bored2wait project. This can be used to wait out the long 2b2t.org queue without you having to login to the server! It can calculate how much time is left and it has a functional AntiAFK system! This proxy server is controlable through the webserver (that it hosts locally), the console, and the discord bot. A full list of commands is under How to use

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

Please optain all required items

Installation

  1. Download and install node.js version 16 or above and git. You need git even if you download the repository as zip because it is to install the dependencies via npm.
  2. Open a terminal then clone this repo then cd into folder:
 git clone https://github.com/rob9315/2b2wts
 cd 2b2wts
  1. Run npm install to install the required libraries
  2. Start the program with npm start.

Configuration

  • You can change all credentials and whether you want update messages by simply editing the values in local.js or deleting that file.

How to use

  1. Read the code to ensure I'm not stealing your credentials. I'm not, but you shouldn't take my word for it. If you don't know how to read it, downloading stuff off the internet and giving it your password is probably a bad idea anyway.
  2. Run npm start
  3. Follow the instructions on screen to setup.
  4. Refer to Commands on how to use 2b2wTS from the console. Otherwise keep on reading for the web interface.
  5. Now open a browser and navigate to http://localhost: your web port here (default 80).
  6. Press the "Start queuing" button. The queue position indicator auto-updates, but sometimes it takes a while to start counting (like 1 min).
  7. Once the queue reaches a low number, connect to the Minecraft server at address localhost.
  8. After you log off, click the "stop queuing" button. This is really important, as you will not actually disconnect from 2b2t until you do that.

Commands

All commands can be used through discord or simply typed in the console window.

  • start will start the queue. It takes between 15-30 seconds for the bot to update with the queue position.
  • stop will stop the queue.
  • quit or exit will close the application

License

Distributed under the GPL-3.0 License. See this for more information.

2b2wts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

icetank

2b2wts's Issues

Tsc compile error one fresh install

Arch is ARM running on a raspberry pi. This error happened after a fresh install from the github page.

> @rob9315/[email protected] build
> npx tsc && npx snowpack build

error TS2688: Cannot find type definition file for 'estree'.
  The file is in the program because:
    Entry point for implicit type library 'estree'

error TS2688: Cannot find type definition file for 'http-cache-semantics'.
  The file is in the program because:
    Entry point for implicit type library 'http-cache-semantics'

error TS2688: Cannot find type definition file for 'keyv'.
  The file is in the program because:
    Entry point for implicit type library 'keyv'


Found 3 errors.

Crash caused by anti afk

The proxy joined the server without me being connected to to. As a result the anti afk plugin throw an error.

/home/pi/Documents/2b2wTS-master/node_modules/mineflayer/lib/plugins/chat.js:129
      throw new Error('Incorrect type! Should be a string or number.')
      ^
Error: Incorrect type! Should be a string or number.
    at chatWithHeader (/home/pi/Documents/2b2wTS-master/node_modules/mineflayer/lib/plugins/chat.js:129:13)
    at EventEmitter.bot.chat (/home/pi/Documents/2b2wTS-master/node_modules/mineflayer/lib/plugins/chat.js:169:5)
    at chat (/home/pi/Documents/2b2wTS-master/node_modules/mineflayer-antiafk/lib/antiafk.js:27:9)
    at Timeout.chat [as _onTimeout] (/home/pi/Documents/2b2wTS-master/node_modules/mineflayer-antiafk/lib/antiafk.js:135:19)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)

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.