galactic-bot/index.js
2022-05-06 12:22:49 +03:00

13 lines
398 B
JavaScript

require('dotenv').config();
const BaseClient = require('./src/middleware/BaseClient.js');
const options = require('./options.json');
const { version } = require('./package.json');
new BaseClient(options, version)
.build();
process.on("unhandledRejection", (error) => {
console.error("[index.js] Unhandled promise rejection:", error); //eslint-disable-line no-console
throw error;
});