linx-simulator2/index.js

21 lines
521 B
JavaScript
Raw Normal View History

const argv = require('yargs').argv;
if(argv.path) { process.env["NODE_CONFIG_DIR"] = argv.path; }
var config = require('config');
2019-09-18 08:11:16 +00:00
const Simulator = require('./src/simulator');
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);