From 11aa877f2a8e3ba0f0697165b8dab3ff3eb64381 Mon Sep 17 00:00:00 2001 From: ddorn Date: Mon, 27 Apr 2020 12:31:26 +0200 Subject: [PATCH] :sparkles: add role dev --- src/cogs/tirages.py | 2 +- src/constants.py | 2 ++ src/tfjm_discord_bot.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cogs/tirages.py b/src/cogs/tirages.py index 57f198c..29c1f86 100644 --- a/src/cogs/tirages.py +++ b/src/cogs/tirages.py @@ -676,7 +676,7 @@ class TirageCog(Cog, name="Tirages"): await ctx.send("Le tirage est annulé.") @draw_group.command(name="skip", aliases=["s"]) - @commands.has_role(CNO_ROLE) + @commands.has_role(DEV_ROLE) async def draw_skip(self, ctx, *teams): """Skip certaines phases du tirage.""" channel = ctx.channel.id diff --git a/src/constants.py b/src/constants.py index ed45a08..40500cf 100644 --- a/src/constants.py +++ b/src/constants.py @@ -5,6 +5,7 @@ __all__ = [ "TOKEN", "ORGA_ROLE", "CNO_ROLE", + "DEV_ROLE", "BENEVOLE_ROLE", "CAPTAIN_ROLE", "PROBLEMS", @@ -29,6 +30,7 @@ ORGA_ROLE = "Orga" CNO_ROLE = "CNO" BENEVOLE_ROLE = "Bénévole" CAPTAIN_ROLE = "Capitaine" +DEV_ROLE = "dev" with open("problems") as f: PROBLEMS = f.read().splitlines() diff --git a/src/tfjm_discord_bot.py b/src/tfjm_discord_bot.py index 916d03d..8a5eb4b 100644 --- a/src/tfjm_discord_bot.py +++ b/src/tfjm_discord_bot.py @@ -42,7 +42,7 @@ async def choose(ctx: Context, *args): @bot.command(name="interrupt") -@commands.has_role(CNO_ROLE) +@commands.has_role(DEV_ROLE) async def interrupt_cmd(ctx): """ :warning: Ouvre une console là où un @dev m'a lancé. :warning: