From a42a654b9bbb893ed222b2d35b6ccd5577da739b Mon Sep 17 00:00:00 2001 From: Toast <96593068+AnxietyisReal@users.noreply.github.com> Date: Sat, 19 Aug 2023 01:02:39 +1000 Subject: [PATCH] Update client.ts --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 7f6151c..2754905 100644 --- a/src/client.ts +++ b/src/client.ts @@ -108,7 +108,7 @@ export default class TClient extends Client { socketTimeoutMS: 30000, tls: false, family: 4 - }).then(()=>console.log(this.logTime(), 'Successfully connected to MongoDB')).catch(err=>{console.error(this.logTime(), `Failed to connect to MongoDB\n${err}`); exec('pm2 stop Daggerbot', {windowsHide:true})}) + }).then(()=>console.log(this.logTime(), 'Successfully connected to MongoDB')).catch(()=>{throw new Error(this.logTime(), `Failed to connect to MongoDB`); exec('pm2 stop Daggerbot', {windowsHide:true})}) this.login(this.tokens.beta); for await (const file of readdirSync('dist/events')){ //console.log('EVENTS:', file)