Add gpt-chef visualisation. - 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 4c2af11a6666a2e715631d81000616ec676f2bc0
DIR parent 7cf0a6a822fd3596465bc773c3cfedd000553371
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 6 Apr 2025 16:23:40 +0200
Add gpt-chef visualisation.
Diffstat:
M annna-message-common | 14 ++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
---
DIR diff --git a/annna-message-common b/annna-message-common
@@ -743,6 +743,13 @@ case "${text}" in
if [ -n "${gptchefrecipe}" ];
then
annna-say -s "${server}" -c "${channel}" "${user}, there was no ready-made recipe, so maybe this is an idea: ${gptchefrecipe}"
+ {
+ emojiuri="$(stable-diffusion-emoji "${gptchefrecipe}")"
+ if [ -n "${emojiuri}" ];
+ then
+ annna-say -s "${server}" -c "${channel}" "${emojiuri}"
+ fi
+ } &
else
annna-say -s "${server}" -c "${channel}" "${user}, I could not find any recipes for you."
fi
@@ -1094,6 +1101,13 @@ case "${text}" in
if [ -n "${gptchefrecipe}" ];
then
annna-say -s "${server}" -c "${channel}" "${user}, ${gptchefrecipe}"
+ {
+ emojiuri="$(stable-diffusion-emoji "${gptchefrecipe}")"
+ if [ -n "${emojiuri}" ];
+ then
+ annna-say -s "${server}" -c "${channel}" "${emojiuri}"
+ fi
+ } &
else
annna-say -s "${server}" -c "${channel}" "${user}, I have no recommendation for you today."
fi