1
0
mirror of https://gitlab.com/ddorn/tfjm-discord-bot.git synced 2025-07-08 07:30:20 +02:00

♻️ but everything tirage related in tirage.py

back to one file for reloading
This commit is contained in:
ddorn
2020-04-28 15:33:40 +02:00
parent 3a231eda10
commit 717f094c16
3 changed files with 576 additions and 542 deletions

View File

@ -44,10 +44,13 @@ class DevCog(Cog, name="Dev tools"):
)
await ctx.send("Tout va mieux !")
@command(name="reload")
@command(name="reload", aliases=["r"])
@has_role(Role.DEV)
async def reload_cmd(self, ctx, name):
MAP = {"d": "dev", "ts": "teams", "t": "tirages"}
name = MAP.get(name, name)
if name in ("dev", "teams", "tirages"):
name = f"src.cogs.{name}"