fix: load token from config mgr instead of storing

This commit is contained in:
2026-01-10 10:11:31 -03:00
parent eb40c4d736
commit efe2cb7458
+1 -7
View File
@@ -21,9 +21,6 @@ type BotEventListener<K extends keyof BotEventListeners> = BotEventListeners[K];
export class Bot { export class Bot {
private client: Client | undefined; private client: Client | undefined;
private readonly token: string;
private readonly clientId: string;
private cmdMgr: CommandManager; private cmdMgr: CommandManager;
private readonly log: Logger; private readonly log: Logger;
@@ -37,9 +34,6 @@ export class Bot {
*/ */
private constructor() { private constructor() {
this.log = new Logger('Bot'); this.log = new Logger('Bot');
this.token = config.token;
this.clientId = config.client_id;
this.cmdMgr = new CommandManager('./commands'); this.cmdMgr = new CommandManager('./commands');
} }
@@ -79,7 +73,7 @@ export class Bot {
); );
this.log.info('Logging in...'); this.log.info('Logging in...');
await this.client.login(this.token); await this.client.login(config.token);
} }
/* /*