Skip to content

Commit

Permalink
server.js:intermediate
Browse files Browse the repository at this point in the history
  • Loading branch information
RandyMcMillan committed Feb 28, 2024
1 parent 3aa3a6f commit 941a301
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,50 @@ exec("which gnostr || echo 'gnostr not found!!! && 1'", (error, stdout, stderr)
}
const gnostr = stdout
})
exec("which gnostr-weeble || echo 'gnostr-weeble not found!!! && 1'", (error, stdout, stderr) => {
if (error) {
console.log(`gnostr-lfs error: ${error.message}`)
return nil
}
if (stderr) {
console.log(`gnostr-lfs stderr: ${stderr}`)
return nil
}
const gnostr = stdout
})
exec("which gnostr-wobble || echo 'gnostr-wobble not found!!! && 1'", (error, stdout, stderr) => {
if (error) {
console.log(`gnostr-lfs error: ${error.message}`)
return nil
}
if (stderr) {
console.log(`gnostr-lfs stderr: ${stderr}`)
return nil
}
const gnostr = stdout
})
exec("which gnostr-blockheight || echo 'gnostr-blockheight not found!!! && 1'", (error, stdout, stderr) => {
if (error) {
console.log(`gnostr-lfs error: ${error.message}`)
return nil
}
if (stderr) {
console.log(`gnostr-lfs stderr: ${stderr}`)
return nil
}
const gnostr = stdout
})
exec("which gnostr-post-event || echo 'gnostr-post-event not found!!! && 1'", (error, stdout, stderr) => {
if (error) {
console.log(`gnostr-lfs error: ${error.message}`)
return nil
}
if (stderr) {
console.log(`gnostr-lfs stderr: ${stderr}`)
return nil
}
const gnostr = stdout
})

exec(`gnostr --sec ${sdk.publicKey.toString('hex')} -t gnostr -t gnostr-lfs --tag weeble "$(gnostr-weeble)" --tag wobble "$(gnostr-wobble)" --tag blockheight "$(gnostr-blockheight)" --tag publicKey ${sdk.publicKey.toString('hex')} --content "${content}" `, (error, stdout, stderr) => {
if (error) {
Expand Down

0 comments on commit 941a301

Please sign in to comment.