Increase agrep difference between hashtags in recommendation to 4. - 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 10d57d4335d197f646f3542f6098d24d5fa47f09 DIR parent a24a5499786a503bf1ec6f6028f7e5bc0698f29b HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Sun, 7 Aug 2022 18:31:54 +0200 Increase agrep difference between hashtags in recommendation to 4. Diffstat: M annna-meme-recommend | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/annna-meme-recommend b/annna-meme-recommend @@ -12,7 +12,8 @@ hashtagfile="$HOME/bin/modules/hashtags/hashtags.txt" hashtag="$1" -agrep -i -1 "^#${hashtag} " "${hashtagfile}" \ +# n differences == -4; up to 8 +agrep -i -4 "^#${hashtag} " "${hashtagfile}" \ | head -n 5 \ | cut -d' ' -f 1 \ | tr "\n" " "