Post a random image from stdin to Tumblr. https://beaverbot.tumblr.com/
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.
bake b4651f14c1 added option to delete image after posting 11 months ago
README.md updated readme 11 months ago
config.example.json added option to delete image after posting 11 months ago
main.go added option to delete image after posting 11 months ago

README.md

beaverbot

Post a random image from stdin to Tumblr.

$ beaverbot -help
Usage of beaverbot:
  -body string
    Replace (Printf) (default "%1")
  -config string
    Config file (default "config.json")
  -debug
    Test -pattern, -body and -tags
  -pattern string
    Search (Regex) (default "(.*)")
  -tags string
    Tags (Printf)

$ ls *.png
11 - Achtung Zombies! & Kellnerglück (00:11:04) 0001.png

$ ls *.png | beaverbot \
  -pattern "\/S([0-9]+)\/([0-9]+) .+ \(00:([0-9:]+)\)" \
  -body "Angry Beavers S%1E%2 at %3" \
  -tags "S%1E%2" \
  -debug # Don't post to Tumblr
Angry Beavers S02E11 at 11:04 [S02E11]