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:
parent
adcba13806
commit
17a1504771
1 changed files with 5 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue