Skip to content

Commit 4a0cae0

Browse files
authored
Merge pull request #15 from LemonTeatw1/master
feat: update CTF channel creation category name and add permissions for bot
2 parents df1833c + 534d30f commit 4a0cae0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ctfeed.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def main():
108108

109109
@bot.slash_command(name = "create_ctf_channel", description = "Create a CTF channel in the CTF category")
110110
async def create_CTF_channel(ctx, channel_name:str):
111-
category_name = "CTF"
111+
category_name = "Incoming/Running CTF"
112112
guild = ctx.guild
113113
category = discord.utils.get(ctx.guild.categories, name=category_name)
114114

@@ -118,7 +118,8 @@ async def create_CTF_channel(ctx, channel_name:str):
118118

119119
overwrites = {
120120
guild.default_role: discord.PermissionOverwrite(view_channel=False),
121-
ctx.author: discord.PermissionOverwrite(view_channel=True)
121+
ctx.author: discord.PermissionOverwrite(view_channel=True),
122+
guild.me: discord.PermissionOverwrite(view_channel=True)
122123
}
123124

124125
try:

0 commit comments

Comments
 (0)