Randomize the meme recommendations, if the list is long. - 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 80eed4c5431540e0f0947e43d80588be169c2112 (DIR) parent a2e6e1815edfadb85ce52c75ffe4988647f1be76 (HTM) Author: Annna Robert-Houdin <annna@bitreich.org> Date: Mon, 8 Aug 2022 20:18:11 +0200 Randomize the meme recommendations, if the list is long. Diffstat: M annna-meme-recommend | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- (DIR) diff --git a/annna-meme-recommend b/annna-meme-recommend @@ -36,6 +36,7 @@ esac # n differences == -4; up to 8 agrep -i -$nerrors "^#${hashtag} " "${hashtagfile}" \ + | shuf 2>/dev/null \ | head -n 5 \ | cut -d' ' -f 1 \ | tr "\n" " "