Fix random selection of second crime fighter partner. - 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 a7586d024a940e40317a29d63eef1427f1756705 DIR parent 7fa60fb0a06c750f14af0f8373892404c9d62d58 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Mon, 15 Feb 2021 14:57:41 +0100 Fix random selection of second crime fighter partner. Diffstat: M annna-start-services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/annna-start-services b/annna-start-services @@ -255,7 +255,7 @@ annna_common() { annna-say -c "${channel}" "${user}, ${rejection}" ;; "${botname}, who fights crime?") - partner=$(echo $brmembers | grep -v "^${user}" | awk '{for (i = 1; i < NF; i++) print $i}' | sort -R | sed 1q) + partner=$(echo $brmembers | awk '{for (i = 1; i < NF; i++) print $i}' | grep -v "^{$user}" | shuf -n 1) crimefighter="$(theyfightcrime ${user} ${partner})" annna-say -c "${channel}" "${crimefighter}" ;;