1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 04:10:59 -05:00

Compare commits

..

No commits in common. "46df03d103e9856a2c629833a5ffc6f47832d205" and "d87f2af46735eefa250b88a38112c590fac15cb2" have entirely different histories.

View File

@ -108,7 +108,7 @@ export default class TClient extends Client {
socketTimeoutMS: 30000, socketTimeoutMS: 30000,
tls: false, tls: false,
family: 4 family: 4
}).then(()=>console.log(this.logTime(), 'Successfully connected to MongoDB')).catch(()=>{throw new Error('Failed to connect to MongoDB'); exec('pm2 stop Daggerbot', {windowsHide:true})}) }).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})})
this.login(this.tokens.beta); this.login(this.tokens.beta);
for await (const file of readdirSync('dist/events')){ for await (const file of readdirSync('dist/events')){
//console.log('EVENTS:', file) //console.log('EVENTS:', file)