add role dev

This commit is contained in:
ddorn 2020-04-27 12:31:26 +02:00
parent 823587b163
commit 11aa877f2a
3 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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()

View File

@ -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 un @dev m'a lancé. :warning: