Move distro-hopping to non-member part. - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 3fe1bab37b1ff455f0e8f4a867f1c1d47ee82e48 | |
parent d61690b5e0303658299d0c0344ee5eaac4e97f66 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 19 Apr 2020 23:13:53 +0200 | |
Move distro-hopping to non-member part. | |
Diffstat: | |
M annna-start-services | 20 ++++++++++---------- | |
1 file changed, 10 insertions(+), 10 deletions(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -405,6 +405,16 @@ then | |
continue; | |
fi | |
+ if [ "${text}" = "${botname}, please distro-hop with me." ]; | |
+ then | |
+ ndistro="$(curl -s 'https://distrowatch.com/dwres.php?… | |
+ | grep phr2 \ | |
+ | sed 's,.*href="\(.*\)".*,\1,' \ | |
+ | sort | uniq | shuf -n 1)" | |
+ annna-say -c "#bitreich-en" "How about https://distrow… | |
+ continue; | |
+ fi | |
+ | |
ismember=0 | |
for member in $brmembers; | |
do | |
@@ -519,16 +529,6 @@ then | |
continue; | |
fi | |
- if [ "${text}" = "${botname}, please distro-hop with me." ]; | |
- then | |
- ndistro="$(curl -s 'https://distrowatch.com/dwres.php?… | |
- | grep phr2 \ | |
- | sed 's,.*href="\(.*\)".*,\1,' \ | |
- | sort | uniq | shuf -n 1)" | |
- annna-say -c "#bitreich-en" "How about https://distrow… | |
- continue; | |
- fi | |
- | |
if [ "${text}" = "${botname}, please dance with me." ]; | |
then | |
if [ $(($RANDOM % 2)) -gt 0 ]; |