We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a86659f commit a431399Copy full SHA for a431399
backend/onyx/connectors/slack/connector.py
@@ -255,7 +255,11 @@ def thread_to_doc(
255
def default_msg_filter(message: MessageType) -> bool:
256
# Don't keep messages from bots
257
if message.get("bot_id") or message.get("app_id"):
258
- return message.get("bot_profile", {}).get("name") != "DanswerBot Testing"
+ bot_profile_name = message.get("bot_profile", {}).get("name")
259
+ print(f"bot_profile_name: {bot_profile_name}")
260
+ if bot_profile_name == "DanswerBot Testing":
261
+ return False
262
+ return True
263
264
# Uninformative
265
if message.get("subtype", "") in _DISALLOWED_MSG_SUBTYPES:
0 commit comments