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:
@ -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}"
|
||||
|
||||
|
Reference in New Issue
Block a user