From efe2cb7458ee48ada0216dcd7472fe4d99e57b21 Mon Sep 17 00:00:00 2001 From: neru Date: Sat, 10 Jan 2026 10:11:31 -0300 Subject: [PATCH] fix: load token from config mgr instead of storing --- src/bot.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index 018b150..bead886 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -21,9 +21,6 @@ type BotEventListener = BotEventListeners[K]; export class Bot { private client: Client | undefined; - - private readonly token: string; - private readonly clientId: string; private cmdMgr: CommandManager; private readonly log: Logger; @@ -37,9 +34,6 @@ export class Bot { */ private constructor() { this.log = new Logger('Bot'); - - this.token = config.token; - this.clientId = config.client_id; this.cmdMgr = new CommandManager('./commands'); } @@ -79,7 +73,7 @@ export class Bot { ); this.log.info('Logging in...'); - await this.client.login(this.token); + await this.client.login(config.token); } /*