Send debugs to see reason for ws disconnect
parent
817328a49d
commit
ecaa861135
|
@ -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<void> {
|
||||
|
@ -16,6 +17,7 @@ async function main(): Promise<void> {
|
|||
await client.loadEvents();
|
||||
await client.loadCommands();
|
||||
client.connect();
|
||||
client.once('ready', () => client.on('debug', (message) => (client.getChannel('592170164322041856') as TextChannel).createMessage(message)));
|
||||
}
|
||||
|
||||
main();
|
||||
|
|
Loading…
Reference in New Issue