mirror of
https://github.com/chatopera/cosin.git
synced 2025-06-16 18:30:03 +08:00
15 lines
277 B
JavaScript
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();
|
|
});
|