Skip to content

Commit

Permalink
Merge pull request #85 from 0xEmma/patch-1
Browse files Browse the repository at this point in the history
Staff can create CTF
  • Loading branch information
dimoschi authored Mar 20, 2024
2 parents df09d94 + f28c5fb commit af69852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmds/core/ctf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, bot: Bot):
ctf = SlashCommandGroup("ctf", "Manage CTF channels and let people joint them.", guild_ids=settings.guild_ids)

@ctf.command(description="Create CTF channels")
@has_any_role(*settings.role_groups.get("ALL_ADMINS"), *settings.role_groups.get("ALL_SR_MODS"))
@has_any_role(*settings.role_groups.get("ALL_ADMINS"), *settings.role_groups.get("ALL_SR_MODS"), *settings.role_groups.get("ALL_HTB_STAFF"))
async def create(
self,
ctx: ApplicationContext,
Expand Down Expand Up @@ -123,7 +123,7 @@ async def create_channel(
return await ctx.respond(f"CTF {ctf_name} has been created.")

@ctf.command(description="Delete CTF channels")
@has_any_role(*settings.role_groups.get("ALL_ADMINS"), *settings.role_groups.get("ALL_SR_MODS"))
@has_any_role(*settings.role_groups.get("ALL_ADMINS"), *settings.role_groups.get("ALL_SR_MODS"), *settings.role_groups.get("ALL_HTB_STAFF"))
async def delete(
self, ctx: ApplicationContext, ctf_name: Option(str, "The name of the event to join")
) -> Interaction | WebhookMessage:
Expand Down

0 comments on commit af69852

Please sign in to comment.