Fix video search. Make it more specific. - annna - Annna the nice friendly bot.
 (HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
       ---
 (DIR) commit b13855cb89ea555afdfcbc5a815647a5f532ef65
 (DIR) parent a7332eca163bb6338851912e77c7ca07356755a1
 (HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
       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(-)
       ---
 (DIR) 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 is ${usertype}"
                }
                ;;
       -"${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}, ${videoresult}"