diff --git a/backend/danswer/danswerbot/slack/config.py b/backend/danswer/danswerbot/slack/config.py index 29e1bd0a8a1..d7789b3d32e 100644 --- a/backend/danswer/danswerbot/slack/config.py +++ b/backend/danswer/danswerbot/slack/config.py @@ -19,7 +19,9 @@ def get_slack_bot_config_for_channel( slack_bot_configs = fetch_slack_bot_configs(db_session=db_session) for config in slack_bot_configs: - if channel_name in config.channel_config["channel_names"]: + if channel_name in config.channel_config[ + "channel_names" + ] or channel_name.startswith("inc-"): return config return None