haxball_bot_headless icon indicating copy to clipboard operation
haxball_bot_headless copied to clipboard

How can I override the room's location ?

Open ODHG1 opened this issue 1 year ago • 1 comments

ODHG1 avatar Jul 23 '23 07:07 ODHG1

just add the geo code @ODHG1

const roomName = 'Room Name';
const maxPlayers = 12;
const roomPublic = true;
const token = ""; // Insert token here
const geo = [
    { code: '(flag code, like CA or US)', lat: (latitude of the location), lon: (longtitude of the location) },
    // example: { code: 'CA', lat: 42, lon: -79 },
    // you can add multiple, but just know, you will have to change the geo setting to [1], [2], etc. if you want to alternate the geo locations
]

// middle code

var gameConfig = {
    roomName: roomName,
    maxPlayers: maxPlayers,
    geo: geo[0],
    public: roomPublic,
    noPlayer: true,
}

ale-lelex avatar Oct 05 '24 20:10 ale-lelex