Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add blobs and publish about with ssb-cli #6

Open
zicmama opened this issue Apr 20, 2020 · 0 comments
Open

How to add blobs and publish about with ssb-cli #6

zicmama opened this issue Apr 20, 2020 · 0 comments

Comments

@zicmama
Copy link

zicmama commented Apr 20, 2020

I used to make it with sbotc/ssbserver this way

name=${qrcodefile##*/}
id="$(sbotc blobs.add < $qrcodefile)"
type="$(file -b --mime-type $qrcodefile)"
size="$(wc -c < $qrcodefile)"
sbot publish --type about --about $ssbpub --description "I am..." --name "$USER" --image "$id"

sbotc publish '{"type":"post","text":"[qrcodefile.png]('"$id"')","mentions":[{"link":"'"$id"'","name":"'"$name"'","size":'"$size"',"type":"'"$type"'"}]}'

What would be an equivalent way to do it with ssb-cli / ssb-daemon ?

@zicmama zicmama changed the title How to add blobs wit ssb-cli How to add blobs with ssb-cli Apr 20, 2020
@zicmama zicmama changed the title How to add blobs with ssb-cli How to add blobs and publish about with ssb-cli Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant