initial commit
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
commit
c22dade3d5
21 files changed
+564
No files matched your search
@@ -0,0 +1,8 @@
|
||||
from pathlib import Path
|
||||
ROOT=Path(__file__).resolve().parent.parent
|
||||
async def load_all(bot):
|
||||
for d in ("cmds","events"):
|
||||
for f in sorted((ROOT/d).glob("*.py")):
|
||||
if f.name.startswith("_"):continue
|
||||
try:await bot.load_extension(f"{d}.{f.stem}")
|
||||
except Exception as e:bot.hook.put(f"module load failed: {d}.{f.stem}: {e!r}")
|
||||
Reference in new issue
Block a user