linx-simulator2/index.js

21 lines
521 B
JavaScript

const argv = require('yargs').argv;
if(argv.path) { process.env["NODE_CONFIG_DIR"] = argv.path; }
var config = require('config');
const Simulator = require('./src/simulator');
// 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'),
elogs: config.get('elogs'),
}
// Start simulation.
console.log('Starting simulation...');
var simulator = new Simulator(configs);