aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar shtlrs <[email protected]>2023-03-30 13:13:29 +0100
committerGravatar shtlrs <[email protected]>2023-03-30 13:13:29 +0100
commite4903f80dc409d6ebee7170be8ee5e38c242d81d (patch)
tree2309a709a52f8c2bd52d86655a05d68f55464044
parentdedent signature (diff)
append forum channel to category
-rw-r--r--bot/constants.py1
-rw-r--r--botstrap.py4
2 files changed, 4 insertions, 1 deletions
diff --git a/bot/constants.py b/bot/constants.py
index ec9130e3e..a0a20373f 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -189,6 +189,7 @@ class _Categories(EnvConfig):
# 2021 Summer Code Jam
summer_code_jam = 861692638540857384
+ python_help_system = 691405807388196926
Categories = _Categories()
diff --git a/botstrap.py b/botstrap.py
index 05f96282b..8d443b3f5 100644
--- a/botstrap.py
+++ b/botstrap.py
@@ -17,6 +17,7 @@ GUILD_ID = os.getenv("GUILD_ID", None)
COMMUNITY_FEATURE = "COMMUNITY"
PYTHON_HELP_CHANNEL_NAME = "python_help"
+PYTHON_HELP_CATEGORY_NAME = "python_help_system"
ANNOUNCEMENTS_CHANNEL_NAME = "announcements"
RULES_CHANNEL_NAME = "rules"
GUILD_FORUM_TYPE = 15
@@ -196,7 +197,8 @@ with DiscordClient() as discord_client:
if create_help_channel:
python_help_channel_name = PYTHON_HELP_CHANNEL_NAME.replace('_', '-')
- python_help_channel_id = create_forum_channel(python_help_channel_name, GUILD_ID, discord_client)
+ python_help_category_id = all_categories[PYTHON_HELP_CATEGORY_NAME]
+ python_help_channel_id = create_forum_channel(python_help_channel_name, GUILD_ID, discord_client, python_help_category_id)
all_channels[PYTHON_HELP_CHANNEL_NAME] = python_help_channel_id
for channel_name in _Channels.__fields__: