diff --git a/src/main.ts b/src/main.ts index c3682ad..d142218 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'; import * as eventFiles from './events'; import * as commandFiles from './commands'; @@ -18,6 +19,10 @@ async function main(): Promise { await client.loadEvents(eventFiles); await client.loadCommands(commandFiles); client.connect(); + client.once('ready', () => client.on('debug', (message) => { + if (message.includes('/messages')) return; + (client.getChannel('592170164322041856') as TextChannel).createMessage(message); + })); } main();