#!/usr/bin/env node "use strict"; // Check if we are in an electron environment if (process.versions["electron"]) { // off to a separate electron boot environment return require("./build/electron"); } const program = require('commander'); program .version('5.0.0') .option('-j, --json ', 'Specify JSON Boot File', require('path').join(__dirname, 'save/conf/default.json')) .parse(process.argv); console.clear(); console.log(` ____ _ _ __ ___ / ___|| |_ _ __ ___ __ _ _ __ ___ | '_ \` _ \\\\___ \\| __| '__/ _ \\/ _\` | '_ \` _ \\ | | | | | |___) | |_| | | __/ (_| | | | | | | |_| |_| |_|____/ \\__|_| \\___|\\__,_|_| |_| |_|`); console.log(); console.log('v5.0-beta'); console.log(); console.log('Breaking Changes'); console.log('-- Config files from v4 will not work'); console.log('-- The Android App does not work with v5 (for now)'); console.log('-- You can no longer boot mStream with CLI flags'); console.log(); console.log('Check out our Discord server:'); console.log('https://discord.gg/AM896Rr'); console.log(); // Boot the server require("./src/server").serveIt(program.json);