From b12d57014239a6af00345661f2ce87098ebade6a Mon Sep 17 00:00:00 2001 From: ajvpot <553597+ajvpot@users.noreply.github.com> Date: Tue, 23 Sep 2025 01:28:47 +0200 Subject: [PATCH] analyze link in discord bot relay --- scripts/lib/discord.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/lib/discord.ts b/scripts/lib/discord.ts index cdbe4cc..6770fd5 100644 --- a/scripts/lib/discord.ts +++ b/scripts/lib/discord.ts @@ -250,7 +250,11 @@ export function formatMeshcoreMessageForDiscord( // Create URL to search page with node name prefilled and exact match enabled const senderSearchUrl = createNodeSearchUrl(sender); - const content = `${processedText}\n-# _Heard ${heardCount} times_ | [Node Info](${senderSearchUrl})`; + + // Create analyze link for message packets + const analyzeUrl = `https://analyzer.letsme.sh/packets?packet_hash=${message.message_id}`; + + const content = `${processedText}\n-# _Heard ${heardCount} times_ | [Node Info](${senderSearchUrl}) | [Analyze](${analyzeUrl})`; // Generate profile picture URL using the new API const profilePictureUrl = `https://map.w0z.is/api/meshcore/profilepicture.png?name=${encodeURIComponent(sender)}&v=3`;