Fix art of day with local picasso generation. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit d795bf823f94e2bb81c033cfc193ae074bdcc8f0 DIR parent f52ebecd76cbf3a430773b452b2e84f91dbff679 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 3 Nov 2024 15:01:35 +0100 Fix art of day with local picasso generation. Diffstat: M art-of-day | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) --- DIR diff --git a/art-of-day b/art-of-day @@ -5,8 +5,14 @@ channel="#bitreich-books" export PATH="$PATH:/home/annna/bin" #arturi="$(/br/gopher/art/thisartworkdoesnotexist.sh)" -arturi="$(stable-diffusion-emoji " +arturi="$(stable-diffusion-emoji "$(fortune-cookie)")" [ -z "${arturi}" ] && exit 1 +emojipath="/br/gopher/$(printf "%s\n" "${arturi}" | cut -d/ -f5-)" +artfile="art_$(LANG=C date +%Y-%m-%dT%H:%M:%S.%N%z).jpg" +artpath="/br/gopher/art/${artfile}" +magick convert "${emojipath}" "${artpath}" +arturi="gophers://bitreich.org/I/art/${artfile}" + annna-say -c "${channel}" "Today's art: ${arturi}"