Could I get a DM every time they post something? Or on a weekly basis?
So I built a tiny ~20kb fully functional web component for publishers that: - scans publisher DM inbox for messages with "subscribe" or "unsubscribe" and builds a subscriptor list on the fly - sends out a message to the list with a custom message including an URL - checks sent DMs to warn if that link was already shared
Is kind 4 the way to go? Or could we have a better construct for subs/unsubs, maybe using shared lists?
{
"id":"fea17d765940ae22327e7055a240f7252084aef853809eb55a3e30234ecee52d",
"pubkey":"726a1e261cc6474674e8285e3951b3bb139be9a773d1acf49dc868db861a1c11",
"created_at":1695051402,
"kind":1,
"tags": [
[
"p",
"7d4e04503ab26615dd5f29ec08b52943cbe5f17bacc3012b26220caa232ab14c",
"",
"mention"
],
[
"p",
"2edbcea694d164629854a52583458fd6d965b161e3c48b57d3aff01940558884",
"",
"mention"
]
],
"content":"Proof of concept: e-mail style subscriptions on Nostr\n\nProblem: I love reading some authors on e.g. nostr:npub1048qg5p6kfnpth2l98kq3dffg097tutm4npsz2exygx25ge2k9xqf5x3nf or nostr:npub19mduaf5569jx9xz555jcx3v06mvktvtpu0zgk47n4lcpjsz43zzqhj6vzk but I tend to miss their updates.\n\nCould I get a DM every time they post something? Or on a weekly basis?\n\nSo I built a tiny ~20kb fully functional web component for publishers that:\n - scans publisher DM inbox for messages with \"subscribe\" or \"unsubscribe\" and builds a subscriptor list on the fly\n - sends out a message to the list with a custom message including an URL\n - checks sent DMs to warn if that link was already shared\n\nIs kind 4 the way to go? Or could we have a better construct for subs/unsubs, maybe using shared lists?\n\nPlease share and let me know!\n\n\n\nhttps://video.nostr.build/23ac80e5beab3f5ca17fe469986a2c0a781a0b832becf48938178d656b179b4c.mov",
"sig":"b94084ba7e5f0b6b9811d77ef3bbde542eb9bc29f389f4c51239209d0c6a4b56e673f9c556acbfa084c211164a1ad485785caa40632bf60f6ab3ff55e47d65d6"
}