floriday/main.js

17 lines
299 B
JavaScript
Raw Permalink Normal View History

import Floriday from './floriday.js';
2023-04-03 19:02:00 +00:00
async function main() {
const floriday = new Floriday();
2023-04-06 08:56:52 +00:00
process.on('SIGINT', async () => {
await floriday.stop();
process.exit();
});
await floriday.start();
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();