Add 16colors art news script. - 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 a29a8a4135594a4b098a3c76ae6fbf1d70a0e42a
 (DIR) parent d67f9a7a0043201fe6c7ead87dac7bf13c8ed180
 (HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
       Date:   Sat,  5 Jun 2021 22:22:52 +0200
       
       Add 16colors art news script.
       
       Diffstat:
         A 16colors-news                       |      19 +++++++++++++++++++
       
       1 file changed, 19 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/16colors-news b/16colors-news
       @@ -0,0 +1,19 @@
       +#!/bin/sh
       +
       +channel="#bitreich-books"
       +
       +export PATH="$PATH:/home/annna/bin"
       +
       +artworkuri="$(hurl https://16colo.rs/ \
       +        | xml2tsv 2>/dev/null \
       +        | grep div/div/div/div/img \
       +         | grep class=transition \
       +        | grep src=/pack \
       +        | head -n 1 \
       +        | sed 's,.*src=\([^\t]*\).*,https://16colo.rs\1,; s, ,%20,g;')"
       +
       +if [ -n "${artworkuri}" ];
       +then
       +        annna-say -c "${channel}" "Today's artwork: ${artworkuri}"
       +fi
       +