git ssb

2+

arj / dat-share



Tree: 589659eb2f7557af64874b5dc925456e0cc0764a

Files: 589659eb2f7557af64874b5dc925456e0cc0764a / README.md

1221 bytesRaw

ssb-dat-share

Find dat links in posts and share them automatically

Command line usage (assuming you want to share from the dats folder):

node bin.js -f ./dats

Can also take a -i option to only share links from people you follow.

This should give you something like this:

Looking for dat links
Found 2
Saving to: ./dats/50237519bcfec8c86632112906ee39c76004a3d4bbf1b342c0b2926f4af67d35
Saving to: ./dats/64a10ea39416aceb6c5852d262c89edc1dfa95d4c3f1f838eb36c4cb2edffc2a
sharing: dat://50237519bcfec8c86632112906ee39c76004a3d4bbf1b342c0b2926f4af67d35
sharing: dat://64a10ea39416aceb6c5852d262c89edc1dfa95d4c3f1f838eb36c4cb2edffc2a

Sbot plugin usage:

mkdir -p ~/.ssb/node_modules
cd ~/.ssb/node_modules
git clone ssb://%HGaRHwvAX9LW8lUAaz8NypXZRCVqOsHTKhj//pkiEiQ=.sha256 ssb-dat-share && cd ssb-dat-share
npm install
sbot plugins.enable ssb-viewer
# restart sbot

For configuration, you can change options in ~/.ssb/config, add:

  "datShare": {
    "shareFolder": "PATH_TO_MY_SHARE_FOLDER",
    "onlyPeopleIFollow": true
  }

TODO:

https://github.com/datproject/dat-node

Built with git-ssb-web