hot reload everything

This commit is contained in:
ddorn 2020-04-29 21:25:05 +02:00
parent cdce856bbe
commit c9acb0eec4
1 changed files with 13 additions and 9 deletions

View File

@ -61,7 +61,7 @@ class DevCog(Cog, name="Dev tools"):
name="reload", aliases=["r"], usage=f"[{'|'.join(COGS_SHORTCUTS.values())}]"
)
@has_role(Role.DEV)
async def reload_cmd(self, ctx, name):
async def reload_cmd(self, ctx, name=None):
"""
(dev) Recharge une catégorie de commandes.
@ -69,6 +69,10 @@ class DevCog(Cog, name="Dev tools"):
possibles: `teams`, `tirages`, `dev`.
"""
names = [name] if name else list(COGS_SHORTCUTS.values())
for name in names:
name = self.full_cog_name(name)
try: