Multi Bot an image
This example will show you how to use multiple bots to bot an image
import { World, PixelPlace, Auth } from 'pixelplacejs'
(async () => {
const CANVAS_ID = 7;
let accounts: Auth[] = [
new Auth(null, {
authId: "", //Fill these values
authKey: "",
authToken: ""
}),
new Auth(null, {
authId: "", //Fill these values
authKey: "",
authToken: ""
})
]
let world = new World(CANVAS_ID);
await world.Init();
console.log("World is ready!")
let pp = new PixelPlace(accounts, world, CANVAS_ID);
await pp.Init();
console.log("PP is ready!")
let [x, y] = [1336, 1839];
let width: number = 200;
let protect: boolean = false;
await pp.render.drawImage({x, y}, "test.png", width, protect);
})()
Last updated
Was this helpful?