analyze link in discord bot relay

This commit is contained in:
ajvpot
2025-09-23 01:28:47 +02:00
parent add14fa37b
commit b12d570142

View File

@@ -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`;