Add fan of day stable diffusion generation script. - annna - Annna the nice fri… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 344c9f602d6fbb54134e96fa8b614d537e623526 | |
parent 8b5f94c17c1027506cdb1c99fb8c13626e69193f | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Thu, 26 Dec 2024 22:29:00 +0100 | |
Add fan of day stable diffusion generation script. | |
We follow the web trends. | |
Diffstat: | |
M art-of-day | 2 +- | |
A fan-of-day | 17 +++++++++++++++++ | |
2 files changed, 18 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/art-of-day b/art-of-day | |
@@ -12,7 +12,7 @@ else | |
fi | |
#arturi="$(/br/gopher/art/thisartworkdoesnotexist.sh)" | |
-arturi="$(stable-diffusion-emoji "$(fortune-cookie)")" | |
+arturi="$(stable-diffusion-emoji "${fortunecookie}")" | |
[ -z "${arturi}" ] && exit 1 | |
emojipath="/br/gopher/$(printf "%s\n" "${arturi}" | cut -d/ -f5-)" | |
diff --git a/fan-of-day b/fan-of-day | |
@@ -0,0 +1,17 @@ | |
+#!/bin/sh | |
+ | |
+channel="#bitreich-books" | |
+ | |
+export PATH="$PATH:/home/annna/bin" | |
+ | |
+fanuri="$(stable-diffusion-emoji "computer fan on CPU beautify")" | |
+[ -z "${fanuri}" ] && exit 1 | |
+ | |
+emojipath="/br/gopher/$(printf "%s\n" "${fanuri}" | cut -d/ -f5-)" | |
+fanfile="onlyfan_$(LANG=C date +%Y_%m_%d_%H_%M_%S_%z).jpg" | |
+fanpath="/br/gopher/onlyfans/${fanfile}" | |
+magick convert "${emojipath}" "${fanpath}" 2>/dev/null | |
+onlyfansuri="gophers://bitreich.org/I/onlyfans/${fanfile}" | |
+ | |
+annna-say -c "${channel}" "Today's fan: ${onlyfansuri}" | |
+ |