Skip to content

Commit

Permalink
Merge pull request #34 from shanemadden/bot_loading
Browse files Browse the repository at this point in the history
Fix loading bots from config
  • Loading branch information
AlinaNova21 authored Feb 28, 2024
2 parents a7383f1 + ec7180d commit 40b46c3
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 40b46c3

Please sign in to comment.