Browse Source

add example

encrypt 6 years ago
parent
commit
184fc4481a
3 changed files with 28 additions and 0 deletions
  1. 15 0
      examples/autobuongiorno.sh
  2. 13 0
      examples/autobuongiorno.sh~
  3. BIN
      examples/buongiorno

+ 15 - 0
examples/autobuongiorno.sh

@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# WTFPL!
+
+tmpfile="/tmp/buongiorno"
+pic=$(immaginibuongiorno)
+
+if [ "$pic" = "" ]
+then
+    echo "notfound"
+    pic=$(immaginibuongiorno --random)
+fi
+wget -O $tmpfile "$pic"
+toot -i="$tmpfile"
+rm $tmpfile

+ 13 - 0
examples/autobuongiorno.sh~

@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# WTFPL!
+
+pic=$(immaginibuongiorno)
+
+if [ "$pic" = "" ]
+then
+    echo "notfound"
+    pic=$(immaginibuongiorno --random)
+fi
+wget -O /tmp/buongiorno "$pic"
+toot -i="/tmp/buongiorno"

BIN
examples/buongiorno