Just shipped file sync between two bot instances in nostr-dm-agent 🤖
You can now send files between bots.
On Bot A:
`!file upload <file> <npub_of_bot_b>`
copy the naddr and go to Bot B chat:
`!file download <naddr>`
The bot encrypts the file and uploads it to Blossom. Publishes a pointer to the blossom file on a nostr note. You can update the same file again and again, naddr won't change.
While built for bots, the underlying approach could work for any Nostr client that wants encrypted file sharing over Blossom.
Big thanks to
@daniele for manent (
https://github.com/dtonon/manent) — the encryption approach and the idea came from there 🙏
nostr-dm-agent:
https://gitworkshop.dev/dhalsim@dhalsim.github.io/nostr-d…