Added jishaku bot utilities for discord.py rewrite bots into requirements.txt . This can be used for syncing the bot commands later.
This commit is contained in:
parent
c4227e0a03
commit
e9e1ce7864
2 changed files with 6 additions and 1 deletions
|
@ -82,8 +82,12 @@ async def sync(ctx: commands.Context, guilds: commands.Greedy[discord.Object],
|
|||
|
||||
|
||||
# startup loading extensions ...
|
||||
# Note: jishaku is always loaded. It's one of the requirements.
|
||||
async def scanext():
|
||||
print("Loading extensions:")
|
||||
await bot.load_extension('jishaku')
|
||||
print("Loaded: jishaku (bot utilities)")
|
||||
|
||||
for filename in os.listdir("./ext"):
|
||||
if filename.endswith(".py"):
|
||||
await bot.load_extension(f"ext.{filename[:-3]}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue