Introduction
Introduction Statistics Contact Development Disclaimer Help
Add #nospoil feature to annna. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 91d7263c59e0d51a0dcc2ddd6a6377fad91b6267
parent d631072ac1dad6d80b8f6f25c88a03f96ddc75eb
Author: Annna Robert-Houdin <[email protected]>
Date: Sun, 15 Apr 2018 21:50:04 +0200
Add #nospoil feature to annna.
Diffstat:
M annna-start-services | 41 +++++++++++++++++++----------…
1 file changed, 25 insertions(+), 16 deletions(-)
---
diff --git a/annna-start-services b/annna-start-services
@@ -82,24 +82,33 @@ then
uri="$(printf "%s\n" "${text}" \
| sed 's,.*\(https\{0\,1\}://[^ ]\{1\,\}\).*,\1,' \
| grep 'https\{0,1\}://[^ ]')"
- if [ -n "$uri" ];
- then
- urititle="$(curl-grabtitle "${uri}" \
- | tr '[:cntrl:]' ' ' \
- | sed 's@^ *@@')"
- if [ -n "$urititle" ];
+ case "${text}" in
+ *\#nospoil*)
+ ;;
+ *)
+ if [ -n "$uri" ];
then
- case "${urititle}" in
- *Gunther*)
- annna-say -c "#bitreich-en" "Oh Gunthe…
- ;;
- *)
- annna-say -c "#bitreich-en" "HTML titl…
- ;;
- esac
+ urititle="$(curl-grabtitle "${uri}" \
+ | tr '[:cntrl:]' ' ' \
+ | sed 's@^ *@@')"
+ if [ -n "$urititle" ];
+ then
+ case "${urititle}" in
+ *Gunther*)
+ annna-say -c "#bitreich-en" "O…
+ ;;
+ *Attention\ Required\!\ \|\ Cloudflare…
+ annna-say -c "#bitreich-en" "W…
+ ;;
+ *)
+ annna-say -c "#bitreich-en" "H…
+ ;;
+ esac
+ fi
+ continue
fi
- continue
- fi
+ ;;
+ esac
case "${text}" in
"${botname}, what is "*)
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.