E5K7 commited on
Commit
f3747b5
·
1 Parent(s): a87857b

Exclude functions.py from cog loading (it's a helper module)

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -73,7 +73,7 @@ async def on_command_error(ctx: commands.Context, error: commands.CommandError):
73
  async def load_cogs():
74
  cogs_dir = pathlib.Path(__file__).parent / "cogs"
75
  for file in cogs_dir.glob("*.py"):
76
- if file.stem.startswith("_"):
77
  continue
78
  ext = f"cogs.{file.stem}"
79
  try:
 
73
  async def load_cogs():
74
  cogs_dir = pathlib.Path(__file__).parent / "cogs"
75
  for file in cogs_dir.glob("*.py"):
76
+ if file.stem.startswith("_") or file.stem == "functions":
77
  continue
78
  ext = f"cogs.{file.stem}"
79
  try: