/brutal-client

Primary LanguageTypeScript

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 cd brutal-client; npm install; npm run build

or, you could install from npm npm i brutal-client

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,
    },
  })
})