Add distro-hopping to annna. - 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 ae88de56ce650836cbb089dc58f5d6eb1acf8006
(DIR) parent 228e98916c7d0d9230687af1313af1131b86ade8
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 19 Apr 2020 23:11:37 +0200
Add distro-hopping to annna.
Thanks Evil_Bob!
Diffstat:
M annna-start-services | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/annna-start-services b/annna-start-services
@@ -522,9 +522,9 @@ then
if [ "${text}" = "${botname}, please distro-hop with me." ];
then
ndistro="$(curl -s 'https://distrowatch.com/dwres.php?resource=popularity' \
- grep phr2 \
- sed 's,.*href="\(.*\)".*,\1,' \
- sort | uniq | shuf -n 1)"
+ | grep phr2 \
+ | sed 's,.*href="\(.*\)".*,\1,' \
+ | sort | uniq | shuf -n 1)"
annna-say -c "#bitreich-en" "How about https://distrowatch.com/${ndistro} ?"
continue;
fi