1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-08-05 20:41:34 +08:00
cosin/cc-switch/app/index.js
2018-09-03 15:22:15 +08:00

15 lines
277 B
JavaScript

const debug = require('debug')('cc-switch');
const Engine = require('./engine');
const engine = new Engine();
engine
.init()
.then(() => {
console.log('cc-switch started');
})
.catch(err => {
debug('cc-switch start error: %o', err);
process.exit();
});