Merge branch 'master' of gitlab.libraryofcode.org:engineering/communityrelations

merge-requests/13/head
Matthew 2020-05-22 01:53:13 -04:00
commit 41f9035e51
No known key found for this signature in database
GPG Key ID: D499B75C1390E321
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
*/ */
import { parse } from 'yaml'; import { parse } from 'yaml';
import { promises as fs } from 'fs'; import { promises as fs } from 'fs';
import { TextChannel } from 'eris';
import { Client } from './class'; import { Client } from './class';
import * as eventFiles from './events'; import * as eventFiles from './events';
import * as commandFiles from './commands'; import * as commandFiles from './commands';
@ -18,6 +19,10 @@ async function main(): Promise<void> {
await client.loadEvents(eventFiles); await client.loadEvents(eventFiles);
await client.loadCommands(commandFiles); await client.loadCommands(commandFiles);
client.connect(); client.connect();
client.once('ready', () => client.on('debug', (message) => {
if (message.includes('/messages')) return;
(client.getChannel('592170164322041856') as TextChannel).createMessage(message);
}));
} }
main(); main();