smartuniverse/ts/smartuniverse.cli.ts

15 lines
356 B
TypeScript
Raw Normal View History

2018-03-07 21:22:15 +00:00
import * as plugins from './smartuniverse.plugins';
2018-03-13 05:15:40 +00:00
import { Universe } from './index';
2018-03-08 22:42:46 +00:00
2018-03-07 21:22:15 +00:00
process.env.CLI = 'true';
const universeCli = new plugins.smartcli.Smartcli();
2018-03-13 05:15:40 +00:00
universeCli.standardTask().then(async argvArg => {
const standardUniverse = new Universe({
messageExpiryInMilliseconds: 60000
2018-03-08 22:42:46 +00:00
});
2018-03-13 05:15:40 +00:00
await standardUniverse.initServer(8765);
2018-03-08 22:42:46 +00:00
});