aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-10-03 19:18:24 -0700
committerGravatar MarkKoz <[email protected]>2019-10-03 19:24:28 -0700
commit4342f978f4b526a8c6850ccce7f3a3e33a04b1c3 (patch)
tree41ce15bb031f8c2e9c185b465b07e1f2841c2334
parentAdd a custom converter for extensions (diff)
Fix the values in the extensions set
* Store just the names rather than entire ModuleInfo objects * Fix prefix argument
-rw-r--r--bot/cogs/extensions.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/bot/cogs/extensions.py b/bot/cogs/extensions.py
index e50ef5553..c3d6fae27 100644
--- a/bot/cogs/extensions.py
+++ b/bot/cogs/extensions.py
@@ -14,7 +14,11 @@ from bot.utils.checks import with_role_check
log = logging.getLogger(__name__)
KEEP_LOADED = ["bot.cogs.extensions", "bot.cogs.modlog"]
-EXTENSIONS = frozenset(ext for ext in iter_modules(("bot/cogs", "bot.cogs")) if ext.name[-1] != "_")
+EXTENSIONS = frozenset(
+ ext.name
+ for ext in iter_modules(("bot/cogs",), "bot.cogs.")
+ if ext.name[-1] != "_"
+)
class Action(Enum):