Spaces:
Runtime error
Runtime error
Exclude functions.py from cog loading (it's a helper module)
Browse files
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:
|