✨ add role dev
This commit is contained in:
parent
823587b163
commit
11aa877f2a
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue