floriday/main.js

18 lines
301 B
JavaScript
Raw Normal View History

import Floriday from './floriday.js';
2023-04-03 19:02:00 +00:00
async function main() {
const floriday = new Floriday();
await floriday.start();
2023-04-06 08:56:52 +00:00
process.on('SIGINT', async () => {
await floriday.stop();
process.exit();
});
2023-04-06 08:56:52 +00:00
try {
await floriday.schedule()
} catch (err) {
await floriday.tryConn();
}
2023-04-03 19:02:00 +00:00
}
main();