Fix video search. Make it more specific. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit b13855cb89ea555afdfcbc5a815647a5f532ef65 | |
parent a7332eca163bb6338851912e77c7ca07356755a1 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Wed, 17 Apr 2024 16:34:14 +0200 | |
Fix video search. Make it more specific. | |
Diffstat: | |
M annna-message-common | 5 +++-- | |
1 file changed, 3 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -320,14 +320,15 @@ case "${text}" in | |
annna-say -s "${server}" -c "${channel}" "${user}, your type i… | |
} | |
;; | |
-"${ircuser}, please give me a video about "*) | |
- word="$(printf "%s\n" "${text}" | cut -c 38-)" | |
+"${ircuser}, please show me a video about "*) | |
+ word="$(printf "%s\n" "${text}" | cut -c 37-)" | |
case "$word" in | |
*\?) | |
word="$(printf "%s\n" "${word}" | cut -c -"$((${#word} - 1))")" | |
;; | |
esac | |
videoresult="$(idiotbox-roulette "${word}")" | |
+ annna-say -s "${server}" -c "${channel}" "${user}, ${word}" | |
if [ -n "${videoresult}" ]; | |
then | |
annna-say -s "${server}" -c "${channel}" "${user}, ${videoresu… |