the public repo for the e-paper bulletin board. It's a bulletin board that syncs over scuttlebutt :)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
350 B

5 months ago
  1. #!/bin/bash
  2. #ok so this script should take an argument of an image and posts it
  3. #add blob
  4. blobID=$(cat $1 | ssb-server blobs.add)
  5. echo $blobID
  6. #publish blob
  7. #key=$(ssb-server publish --type post --text "![upload.bmp($blobID)]"
  8. ssb-server publish --type post --text "![photo.bmp]($blobID)" photo.bmp --mentions.0.type image/bmp