5
0
Fork 1
forked from encrypt/toot

add example

This commit is contained in:
encrypt 2018-04-10 12:10:53 +00:00
parent 145eef8632
commit 184fc4481a
3 changed files with 28 additions and 0 deletions

View file

@ -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

View file

@ -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 Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB