diff --git a/src/main.ts b/src/main.ts index 5213da2..15a9f77 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,6 +3,7 @@ */ import { parse } from 'yaml'; import { promises as fs } from 'fs'; +import { TextChannel } from 'eris'; import { Client } from './class'; async function main(): Promise { @@ -16,6 +17,7 @@ async function main(): Promise { await client.loadEvents(); await client.loadCommands(); client.connect(); + client.once('ready', () => client.on('debug', (message) => (client.getChannel('592170164322041856') as TextChannel).createMessage(message))); } main();