haxball_bot_headless
haxball_bot_headless copied to clipboard
How can I override the room's location ?
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,
}