diff options
-rw-r--r-- | bot/constants.py | 1 | ||||
-rw-r--r-- | botstrap.py | 4 |
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__: |