git ssb

2+

arj / dat-share



Tree: 8d17a41209cdd6c812ab9a2b84b33e948725194a

Files: 8d17a41209cdd6c812ab9a2b84b33e948725194a / README.md

1139 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. And can be told to share using memory (-t) instead of from filesystem.

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-dat-share
# restart sbot

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

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

Built with git-ssb-web