17 lines
370 B
TypeScript
17 lines
370 B
TypeScript
|
require('dotenv').config();
|
||
|
|
||
|
import logger from './bot/logger';
|
||
|
import AutomodClient, { login } from './struct/AutomodClient';
|
||
|
import MongoDB from './bot/db';
|
||
|
|
||
|
logger.info('Initializing client');
|
||
|
|
||
|
let db = MongoDB();
|
||
|
let client = new AutomodClient({ /* client config */ }, db);
|
||
|
login(client);
|
||
|
|
||
|
export { client }
|
||
|
|
||
|
// Load modules
|
||
|
import('./bot/modules/command_handler');
|