Discord-InterChat/InterChat

View on GitHub
src/client.ts

Summary

Maintainability
A
0 mins
Test Coverage
import InterChatClient from '#main/core/BaseClient.js';
import '#main/instrument.js';
import Logger from '#utils/Logger.js';
import 'dotenv/config';

const client = new InterChatClient();

client.on('debug', (debug) => Logger.debug(debug));
client.rest.on('restDebug', (debug) => Logger.debug(debug));
client.rest.on('rateLimited', (data) => Logger.warn('Rate limited: %O', data));

process.on('uncaughtException', (error) => Logger.error(error));

client.start();