18 lines
301 B
JavaScript
18 lines
301 B
JavaScript
import Floriday from './floriday.js';
|
|
|
|
async function main() {
|
|
const floriday = new Floriday();
|
|
await floriday.start();
|
|
|
|
process.on('SIGINT', async () => {
|
|
await floriday.stop();
|
|
process.exit();
|
|
});
|
|
|
|
try {
|
|
await floriday.schedule()
|
|
} catch (err) {
|
|
await floriday.tryConn();
|
|
}
|
|
}
|
|
main(); |