1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-06-16 18:30:03 +08:00
cosin/cc-switch/app/index.js
2019-11-01 19:05:59 +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();
});