16 lines
357 B
TypeScript
16 lines
357 B
TypeScript
import * as plugins from './smartuniverse.plugins';
|
|
|
|
import { Universe } from './index';
|
|
|
|
process.env.CLI = 'true';
|
|
|
|
const universeCli = new plugins.smartcli.Smartcli();
|
|
|
|
universeCli.standardTask().then(async argvArg => {
|
|
const standardUniverse = new Universe({
|
|
messageExpiryInMilliseconds: 60000
|
|
});
|
|
await standardUniverse.initServer(8765);
|
|
|
|
});
|