This bot is made to deal itself with the WebSocket basically supported by the Freeroam server.
The following configuration example is the file settings.json
and you will have to fill every settings as your convenance.
{
"wsDomain": "map.example.com",
"wsPort": 6997,
"wsOutPort": 6996,
"privkeyPath": "/etc/letsencrypt/live/yourdomain/privkey.pem",
"pubkeyPath": "/etc/letsencrypt/live/yourdomain/fullchain.pem"
}
Bot configuration
wsDomain
, the domain where the websocket points to. (Must be same than in Freeroam server config.)wsPort
, the port of the websocket. (Must be same than in Freeroam server config.)wsOutPort
, the desired output port of the websocket.privkeyPath
, the path to your certified domain private key.pubkeyPath
, the path to your certified domain public key.
To use the project correctly you will need some tools.
- Node JS (v16.X.X+).
Run the following commands into your terminal.
git clone https://github.com/SPEED0U/BotFMS
npm install
Go to the folder where the bot files are located and run the following commands.
node index.js
Realized with ❤️ by Speedou.
Please do not withdraw the license and keep the credits on this project.