forked from Galactic/galactic-bot
15 lines
512 B
JavaScript
15 lines
512 B
JavaScript
require('dotenv').config({ override: true });
|
|
// eslint-disable-next-line no-console
|
|
console.log(`Starting in ${process.env.NODE_ENV} mode`);
|
|
|
|
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;
|
|
}); |