aboutsummaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-04-03 15:40:56 -0500
committerParker <contact@pkrm.dev>2024-04-03 15:40:56 -0500
commit63413c44c5d791816061cc012fdcf61ace35c181 (patch)
tree955f2a823ef2b44f170a68f7b5eef23642dfb9a5 /code
parentb8d7289bb8c3415aabae360856fa329d709cd3ec (diff)
Load cogs within cogs/owner
Diffstat (limited to 'code')
-rw-r--r--code/bot.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/bot.py b/code/bot.py
index 6cce5e8..9ed2df6 100644
--- a/code/bot.py
+++ b/code/bot.py
@@ -19,6 +19,9 @@ class MyBot(commands.Bot):
for ext in os.listdir("./code/cogs"):
if ext.endswith(".py"):
await self.load_extension(f"cogs.{ext[:-3]}")
+ for ext in os.listdir("./code/cogs/owner"):
+ if ext.endswith(".py"):
+ await self.load_extension(f"cogs.owner.{ext[:-3]}")
bot = MyBot()