mattn / bsky

A cli application for bluesky social
269 stars 26 forks source link

Add -image-alt flag to post alt text #8

Closed backspace closed 1 year ago

backspace commented 1 year ago

Hey, I came here because I noticed that bskybots uses your library for the meme bot but the alt text is just a filename. Here’s a prototype that adds an -image-alt flag to override the filename. You can see it successfully worked here.

There’s at least one problem I’m aware of, if you ran something like this:

bsky post -image i1.png -image-alt "image description 1" -image i2.png -image i3.png -image-alt "image description 3" "some images"

This implementation would miss the alt text for the third image. I looked at the urfave/cli documentation and couldn’t find anything about pairing flags but I’m barely familiar with Go and could have missed something.

Thanks for all the work on this! 🤩

mattn commented 1 year ago

Thank you