From 17a1504771a955b7645a2977ce50daa2e2da318a Mon Sep 17 00:00:00 2001 From: padreug Date: Wed, 2 Jul 2025 19:29:19 +0200 Subject: [PATCH] feat: Enhance logging in send_test_note.js for better debugging - Add logging of the hex public key to provide more context during note sending. - Include instructions for making a note an admin post by adding the hex pubkey to the .env file. --- send_test_note.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/send_test_note.js b/send_test_note.js index b766918..805fd80 100644 --- a/send_test_note.js +++ b/send_test_note.js @@ -21,8 +21,13 @@ async function sendTestNote(nsecInput, relayUrl, message) { const npub = nip19.npubEncode(publicKey); console.log(`Sending note from: ${npub}`); + console.log(`Hex pubkey: ${publicKey}`); console.log(`To relay: ${relayUrl}`); console.log(`Message: ${message}`); + console.log(''); + console.log('💡 To make this an admin post, add this hex pubkey to .env:'); + console.log(` "${publicKey}"`); + console.log(''); // Create the event const event = {