Skip to content

Commit

Permalink
Merge pull request #60 from mindvalley/feat/hack-support-channel-prefix
Browse files Browse the repository at this point in the history
Hack: Support prefixed channel config
  • Loading branch information
onimsha authored Sep 19, 2024
2 parents 08af546 + 8a0a888 commit 9898ae4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/danswer/danswerbot/slack/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9898ae4

Please sign in to comment.