Add double meme on meme meme me to irritate KatolaZ. - 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 d30cb6f9b50eabc1f844f4830cb85c2180ba249f DIR parent a73c9d4c6c51f318604d6debf67d79ae24e118e1 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Thu, 7 May 2020 13:12:55 +0200 Add double meme on meme meme me to irritate KatolaZ. Diffstat: M annna-start-services | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -346,7 +346,7 @@ then randomtag=0 if [ "${text}" = "${botname}, please meme meme meme me." ]; then - randomtag=1 + randomtag=2 fi if [ "${text}" = "${botname}, what's the wheelchair shooter meme again?" ]; @@ -377,18 +377,23 @@ then ;; esac - if [ $randomtag -eq 1 ]; + if [ $randomtag -gt 0 ]; then - rtag="$(printf "%s\n" "$(hashtags)" | shuf -n 1)" - tagname="" - taguri="" - for tag in ${rtag}; + while [ $randomtag -gt 0 ]; do - [ -z "${tagname}" ] && tagname="${tag}" && continue - taguri="${tag}" - done + rtag="$(printf "%s\n" "$(hashtags)" | shuf -n 1)" + tagname="" + taguri="" + for tag in ${rtag}; + do + [ -z "${tagname}" ] && tagname="${tag}" && continue + taguri="${tag}" + done - annna-say -c "#bitreich-en" "${tagname}: ${taguri}" + annna-say -c "#bitreich-en" "${tagname}: ${taguri}" + + randomtag=$(($randomtag - 1)) + done else tagname="" taguri=""