Merge branch 'master' of gitlab.libraryofcode.org:engineering/communityrelations
commit
41f9035e51
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue