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.
This commit is contained in:
padreug 2025-07-02 19:29:19 +02:00
parent adcba13806
commit 17a1504771

View file

@ -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 = {