/mc/ - tildecraft

a man, a plan, a canal, troido

readdat () { read -r var; echo "$var" | grep -qE "[a-Z].*" || var=$2; echo "$var" > "$1"; };echo "Post to:"; read -r parent; echo "$parent" | grep -qE "([a-Z]|[1-9]).*" || exit;postdir=$(echo "$parent"-"$RANDOM");mkdir ./"$postdir" && cd ./"$postdir" || exit; echo "Name (blank for anonymous):";readdat "user" "Anonymous";echo "Title (blank for none):";readdat "title" "";echo "Absolute path to image (blank for none):";read -r imagepath; echo "$imagepath" | grep -qE "[a-Z].*" && if test -f "$imagepath"; then cp "$imagepath" .;else echo "could not find $imagepath";fi;echo "Post text (Ctrl-D to finish):"; cat > content; cd ..; tar -cf "$postdir".tar ./"$postdir";rm -rf "$postdir"; echo "posting..."; nc -q2 tilde.team 7070 < "$postdir".tar

i'm so excited because I found a donkey! i'm gonna bring him home and breed mules and have so many adventures

Post #34 by dzns Mon, 13 Aug 2018 13:53:02 +0000


lost.png (1.3M)

oops, i dropped him down a pocket ravine D:
hang in there buddy!

Post #35 by dzns Mon, 13 Aug 2018 13:57:14 +0000

donkeyyyyy in the hole

Post #36 by dzns Mon, 13 Aug 2018 13:58:12 +0000


found.png (3.7M)

welcome home buddy. you'll have such a good life now. you'll enjoy only the freshest hay, and you'll enjoy only the kindest forced captivity and forced breeding.