Introduction
Introduction Statistics Contact Development Disclaimer Help
Add 16colors art news script. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit a29a8a4135594a4b098a3c76ae6fbf1d70a0e42a
parent d67f9a7a0043201fe6c7ead87dac7bf13c8ed180
Author: Annna Robert-Houdin <[email protected]>
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(-)
---
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
+
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.