Skip to content

Commit fcbe0a5

Browse files
committed
fix slash command slackbot to respond in private msg
1 parent 146628e commit fcbe0a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/onyx/onyxbot/slack/handlers/handle_regular_answer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def handle_regular_answer(
8888
# the message is a dm with the Onyx bot.
8989
send_as_ephemeral = (
9090
slack_channel_config.channel_config.get("is_ephemeral", False)
91-
and not message_info.is_bot_dm
92-
)
91+
or message_info.is_bot_msg
92+
) and not message_info.is_bot_dm
9393

9494
# If the channel mis configured to respond with an ephemeral message,
9595
# or the message is a dm to the Onyx bot, we should use the proper onyx user from the email.

0 commit comments

Comments
 (0)