Skip to content

Commit

Permalink
Iterate entries instead of values to fix loading bots from config
Browse files Browse the repository at this point in the history
  • Loading branch information
shanemadden committed Feb 28, 2024
1 parent 7e21f59 commit ec7180d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ec7180d

Please sign in to comment.