Skip to content

Your lightweight open-source personal agent.

feat(feishu): make reaction emoji configurable

kimkitsuragi266641bad33766
diff --git a/nanobot/channels/feishu.py b/nanobot/channels/feishu.py
index 480bf7bc1..4a6312ec9 100644
--- a/nanobot/channels/feishu.py
+++ b/nanobot/channels/feishu.py
@@ -692,7 +692,7 @@ class FeishuChannel(BaseChannel):
msg_type = message.message_type
# Add reaction
- await self._add_reaction(message_id, "THUMBSUP")
+ await self._add_reaction(message_id, self.config.react_emoji)
# Parse content
content_parts = []
diff --git a/nanobot/config/schema.py b/nanobot/config/schema.py
index 61aee9610..d83967cae 100644
--- a/nanobot/config/schema.py
+++ b/nanobot/config/schema.py
@@ -42,6 +42,7 @@ class FeishuConfig(Base):
encrypt_key: str = "" # Encrypt Key for event subscription (optional)
verification_token: str = "" # Verification Token for event subscription (optional)
allow_from: list[str] = Field(default_factory=list) # Allowed user open_ids
+ react_emoji: str = "THUMBSUP" # Emoji type for message reactions (e.g. THUMBSUP, OK, DONE, SMILE)
class DingTalkConfig(Base):