slack: Added replyInThread logic and custom react emoji in config

This commit is contained in:
Hyudryu
2026-02-17 13:42:57 -08:00
parent 831eb07945
commit 72db01db63
2 changed files with 6 additions and 2 deletions

View File

@@ -152,13 +152,15 @@ class SlackChannel(BaseChannel):
text = self._strip_bot_mention(text)
thread_ts = event.get("thread_ts") or event.get("ts")
thread_ts = event.get("thread_ts")
if self.config.reply_in_thread and not thread_ts:
thread_ts = event.get("ts")
# Add :eyes: reaction to the triggering message (best-effort)
try:
if self._web_client and event.get("ts"):
await self._web_client.reactions_add(
channel=chat_id,
name="eyes",
name=self.config.react_emoji,
timestamp=event.get("ts"),
)
except Exception as e: