2021-10-08 23:36:46 +02:00
|
|
|
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();
|
2021-11-20 15:03:58 +01:00
|
|
|
let client = new AutomodClient({ pongTimeout: 10, onPongTimeout: 'RECONNECT' }, db);
|
2021-10-08 23:36:46 +02:00
|
|
|
login(client);
|
|
|
|
|
|
|
|
export { client }
|
|
|
|
|
|
|
|
// Load modules
|
|
|
|
import('./bot/modules/command_handler');
|
2021-10-14 13:25:13 +02:00
|
|
|
import('./bot/modules/mod_logs');
|