From 2dbe50ed089e4d6a25d22f97fe848099b9752972 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 7 May 2023 18:43:11 +1000 Subject: [PATCH] Forgor to switch token --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index c49c8a2..627e53a 100644 --- a/src/client.ts +++ b/src/client.ts @@ -98,7 +98,7 @@ export default class TClient extends Client { socketTimeoutMS: 30000, family: 4 }).then(()=>console.log(this.logTime(), 'Successfully connected to MongoDB')).catch(err=>{console.error(this.logTime(), `Failed to connect to MongoDB\n${err.reason}`); exec('pm2 stop Daggerbot')}) - this.login(this.tokens.beta); + this.login(this.tokens.main); for await (const file of fs.readdirSync('dist/events')){ const eventFile = await import(`./events/${file}`); this.on(file.replace('.js',''), async(...args)=>eventFile.default.run(this,...args))