From ec7180d5b725d5c85ce72e53cd6c9de10f33bc5c Mon Sep 17 00:00:00 2001 From: Shane Madden Date: Wed, 28 Feb 2024 13:31:07 -0700 Subject: [PATCH] Iterate entries instead of values to fix loading bots from config --- src/modules.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules.ts b/src/modules.ts index d0da186..968aee1 100644 --- a/src/modules.ts +++ b/src/modules.ts @@ -136,7 +136,7 @@ export class ModuleManager { const c = this.config const bots: BotMap = {} const mods = await Promise.all(c.mods.map(mod => this.getPackageMain(mod))) - for (const [name, bot] of Object.values(c.bots)) { + for (const [name, bot] of Object.entries(c.bots)) { if (bot.startsWith('.')) { bots[name] = bot } else {