Fix the apples? - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 5fa8db85fffb3aee8841e0294a92919191622878 | |
parent 67b4ba5ac6018b56db51340b644650cc94944457 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Fri, 27 Aug 2021 18:12:46 +0200 | |
Fix the apples? | |
Diffstat: | |
M annna-message-common | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -365,9 +365,9 @@ case "${text}" in | |
;; | |
"${botname}, what can I cook with "*) | |
ingredients="$(printf "%s\n" "${text}" | cut -c 29- | sed 's,\t, ,g… | |
- case "$word" in | |
+ case "$ingredients" in | |
*\?) | |
- word="$(printf "%s\n" "${word}" | cut -c -"$(($(expr length "$… | |
+ ingredients="$(printf "%s\n" "${ingredients}" | cut -c -"$(($(… | |
;; | |
esac | |