modmail/index.js

12 lines
340 B
JavaScript
Raw Permalink Normal View History

2022-01-05 15:20:49 +01:00
if (!require('fs').existsSync('./config.js')) {
2022-01-05 13:22:25 +01:00
// eslint-disable-next-line no-console
console.error(`Missing config file.`);
// eslint-disable-next-line no-process-exit
process.exit(0);
}
2022-01-05 15:20:49 +01:00
const Options = require('./config.js');
2021-06-18 15:41:57 +02:00
const { Client } = require('./structure');
const client = new Client(Options);
client.init();