galactic-bot/index.js

15 lines
512 B
JavaScript
Raw Permalink Normal View History

2022-07-04 10:44:05 +02:00
require('dotenv').config({ override: true });
2022-07-02 14:32:57 +02:00
// eslint-disable-next-line no-console
console.log(`Starting in ${process.env.NODE_ENV} mode`);
2021-08-16 23:01:08 +02:00
const BaseClient = require('./src/middleware/BaseClient.js');
2020-04-08 18:08:46 +02:00
const options = require('./options.json');
2021-08-16 23:01:08 +02:00
const { version } = require('./package.json');
new BaseClient(options, version)
.build();
2020-04-08 18:08:46 +02:00
2022-05-06 11:22:49 +02:00
process.on("unhandledRejection", (error) => {
console.error("[index.js] Unhandled promise rejection:", error); //eslint-disable-line no-console
throw error;
});