Skip to content

Your lightweight open-source personal agent.

fix(discord): remove duplicate channel_id assignment in message handler

Leo fu2c0cd085a4ed
diff --git a/nanobot/channels/discord.py b/nanobot/channels/discord.py
index 336b6148d..9a75da1e9 100644
--- a/nanobot/channels/discord.py
+++ b/nanobot/channels/discord.py
@@ -450,7 +450,6 @@ class DiscordChannel(BaseChannel):
await self._start_typing(message.channel)
# Add read receipt reaction immediately, working emoji after delay
- channel_id = self._channel_key(message.channel)
try:
await message.add_reaction(self.config.read_receipt_emoji)
self._pending_reactions[channel_id] = message