Skip to content

Commit

Permalink
Merge pull request #8 from compsci-adl/fix/command-groups
Browse files Browse the repository at this point in the history
fix: Use correct commands directory
  • Loading branch information
phoenixpereira authored Jun 21, 2024
2 parents 57400bd + aeaf1f1 commit d4d7d90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self):

async def setup_hook(self):
# Dynamically load all command groups from the commands directory
for _, module_name, _ in pkgutil.iter_modules(["commands"]):
for _, module_name, _ in pkgutil.iter_modules(["src/commands"]):
module = importlib.import_module(f"commands.{module_name}")
for attribute_name in dir(module):
attribute = getattr(module, attribute_name)
Expand Down

0 comments on commit d4d7d90

Please sign in to comment.