Global Feed Post Login
Replying to Avatar ?

attraverso un semplice script per #emacs che sfrutta #nak adesso con un semplice M-w e M-x nostr-post posso pubblicare qualsiasi cosa mi passi tra le mani nel sistema operativo... EMACS

;

; nostr-publish.el

;

; use:

;

; load the script with M-x "load-file"

; it defines "nostr-post" function

;

; M-w in your content (saved in kill-ring)

;

; M-x "nostr-post" publishes content

(provide 'nostr-post)

(defun nostr-post ()

(interactive)

(setq key "your secret key")

(setq rel "a relays's list in the form wss://...")

(setq msg (substring-no-properties (nth 0 kill-ring)))

(shell-command

(format "nak event --sec %s -c %s %s" key (prin1-to-string msg) rel)

)

)

Avatar
? 10mo ago

publishing to wss://relay.mostr.pub... failed: msg: blocked: missing #nip05

#mostr #nak

Reply to this note

Please Login to reply.

Discussion

No replies yet.