2020-08-05 09:26:03 +00:00
|
|
|
const argv = require('yargs').argv;
|
2019-11-07 13:11:05 +00:00
|
|
|
if(argv.path) { process.env["NODE_CONFIG_DIR"] = argv.path; }
|
2020-08-05 09:26:03 +00:00
|
|
|
var config = require('config');
|
2019-09-18 08:11:16 +00:00
|
|
|
|
2019-11-07 13:11:05 +00:00
|
|
|
const Simulator = require('./src/simulator');
|
2020-04-09 14:02:44 +00:00
|
|
|
|
2019-09-18 08:11:16 +00:00
|
|
|
// Read configs.
|
|
|
|
let configs = {
|
|
|
|
mumble: config.get('mumble'),
|
|
|
|
hub: config.get('hub'),
|
|
|
|
api: config.get('api'),
|
|
|
|
assets: config.get('assets'),
|
|
|
|
sounds: config.get('sounds'),
|
|
|
|
settings: config.get('settings'),
|
2019-11-22 10:38:03 +00:00
|
|
|
elogs: config.get('elogs'),
|
2019-09-18 08:11:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Start simulation.
|
|
|
|
console.log('Starting simulation...');
|
2019-11-22 09:43:37 +00:00
|
|
|
var simulator = new Simulator(configs);
|