From 58a6f630c51b2ff670d7c1fa7603abd350aa6e31 Mon Sep 17 00:00:00 2001 From: Chris Wiegand Date: Sat, 11 Apr 2026 18:46:47 -0600 Subject: [PATCH] add the sender to the path response if not a DM to help discern who bot is responding to --- modules/commands/path_command.py | 3 +++ translations/en-GB.json | 1 + translations/en.json | 1 + 3 files changed, 5 insertions(+) diff --git a/modules/commands/path_command.py b/modules/commands/path_command.py index 2c0b52d2..2778888c 100644 --- a/modules/commands/path_command.py +++ b/modules/commands/path_command.py @@ -212,6 +212,9 @@ async def execute(self, message: MeshMessage) -> bool: path_input = " ".join(parts[1:]) response = await self._decode_path(path_input) + if not message.is_dm: + response = self.translate('commands.path.initial_source', node_id=message.sender_id) + "\n" + response + # Send the response (may be split into multiple messages if long) await self._send_path_response(message, response) return True diff --git a/translations/en-GB.json b/translations/en-GB.json index f38cb3ba..11bca3e5 100644 --- a/translations/en-GB.json +++ b/translations/en-GB.json @@ -331,6 +331,7 @@ "path_prefix": "📡 Path: {path_string}", "direct_connection": "📡 Direct connection (0 hops)", "node_format": "{node_id}: {name}", + "initial_source": "Path from {node_id}:", "node_unknown": "{node_id}: Unknown", "node_collision": "{node_id}: {matches} repeaters", "node_geographic": "{node_id}: {name} {confidence}", diff --git a/translations/en.json b/translations/en.json index 4001f904..13a386c6 100644 --- a/translations/en.json +++ b/translations/en.json @@ -255,6 +255,7 @@ "path_prefix": "📡 Path: {path_string}", "direct_connection": "📡 Direct connection (0 hops)", "node_format": "{node_id}: {name}", + "initial_source": "Path from {node_id}:", "node_unknown": "{node_id}: Unknown", "node_collision": "{node_id}: {matches} repeaters", "node_geographic": "{node_id}: {name} {confidence}",