Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix cookined recommendations and at gpt-chef support. - annna - Annna the nice …
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 7cf0a6a822fd3596465bc773c3cfedd000553371
parent 6ba5ed6348f1162447c2e2d7aa2e76476708394a
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 6 Apr 2025 16:16:23 +0200
Fix cookined recommendations and at gpt-chef support.
Diffstat:
M annna-message-common | 18 +++++++++++++++---
M based.recipe | 4 ++--
2 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/annna-message-common b/annna-message-common
@@ -736,10 +736,16 @@ case "${text}" in
results="$(fridge-recipe-search "${ingredients}")"
if [ -n "${results}" ];
then
- puri="$(printf "%s\n" "${results}" | bitreich-paste | sed 's,/…
+ puri="$(printf "%s\n" "${results}" | bitreich-paste | sed 's,0…
annna-say -s "${server}" -c "${channel}" "${user}, here are so…
else
- annna-say -s "${server}" -c "${channel}" "${user}, I could not…
+ gptchefrecipe="$(gpt-chef "${ingredients}")"
+ if [ -n "${gptchefrecipe}" ];
+ then
+ annna-say -s "${server}" -c "${channel}" "${user}, the…
+ else
+ annna-say -s "${server}" -c "${channel}" "${user}, I c…
+ fi
fi
;;
"${ircuser}, gpt "*)
@@ -1084,7 +1090,13 @@ case "${text}" in
then
annna-say -s "${server}" -c "${channel}" "${user}, ${recipestr…
else
- annna-say -s "${server}" -c "${channel}" "${user}, I have no r…
+ gptchefrecipe="$(gpt-chef "something random")"
+ if [ -n "${gptchefrecipe}" ];
+ then
+ annna-say -s "${server}" -c "${channel}" "${user}, ${g…
+ else
+ annna-say -s "${server}" -c "${channel}" "${user}, I h…
+ fi
fi
;;
# parazyd.org is unmaintained
diff --git a/based.recipe b/based.recipe
@@ -3,8 +3,8 @@
baseuri="https://based.cooking/"
hurl "${baseuri}" \
- | grep "^<li><a href=\"[a-zA-Z0-9-]*.html\"" \
- | sed 's,.*a href="\([a-zA-Z0-9-]*.html\)">\(.*\)</a></li>$,\1\t\2,g' \
+ | grep "^<li .*><a href=\".*\"" \
+ | sed 's,.*a href="\(.*\)">\(.*\)</a></li>$,\1\t\2,g' \
| shuf -n 1 \
| while read -r htmluri recipename;
do
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.