brutal-client

2.0.1 • Public • Published

brutal-client

license

Credits

Thanks to Cazka, I got a lot of inspiration from DiepSocket

Thanks to Snoopy for providing a lot of info on the packets

Installation

git clone https://github.com/Craabby/brutal-client and once that finishes, run npm install

Making a connection

const BrutalClient = require("./brutal-client") // brutal-client must be in the same directory, move to node_modules if you dont want to use the ./

const bot = new BrutalClient("enter websocket url here")

bot.on("open", () => {
  // when the websocket connection is finished, run the code in the function
  bot.spawn("brutal-client") // makes the bot spawn into the game with the name "brutal-client"

  bot.send("input", {
    mouse: new BrutalSocket.Vector(100, 100), // makes the bot's mouse position be 100, 100
    flags: {
      playerIsMoving: true,
    },
  })
})

Readme

Keywords

none

Package Sidebar

Install

npm i brutal-client

Weekly Downloads

2

Version

2.0.1

License

MIT

Unpacked Size

94.1 kB

Total Files

76

Last publish

Collaborators

  • brutal-client