Stop debugging messages

merge-requests/13/head
Bsian 2020-05-20 14:52:11 +01:00
parent ecaa861135
commit ef22cd76dd
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,10 @@ async function main(): Promise<void> {
await client.loadEvents(); await client.loadEvents();
await client.loadCommands(); await client.loadCommands();
client.connect(); client.connect();
client.once('ready', () => client.on('debug', (message) => (client.getChannel('592170164322041856') as TextChannel).createMessage(message))); client.once('ready', () => client.on('debug', (message) => {
if (message.includes('/messages')) return;
(client.getChannel('592170164322041856') as TextChannel).createMessage(message);
}));
} }
main(); main();