Add goomic recommendation for #bitreich-books. - annna - Annna the nice friendl… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 2926a2bf9fd14553a4a459ee070ccefbd8cdeaa6 | |
parent 48d4c8568dcf6f0471b63a4b43e07b5ab7d1823b | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Fri, 16 Jul 2021 20:18:06 +0200 | |
Add goomic recommendation for #bitreich-books. | |
Diffstat: | |
A goomics-of-day | 16 ++++++++++++++++ | |
1 file changed, 16 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/goomics-of-day b/goomics-of-day | |
@@ -0,0 +1,16 @@ | |
+#!/bin/sh | |
+ | |
+channel="#bitreich-books" | |
+ | |
+export PATH="$PATH:/home/annna/bin" | |
+ | |
+goomicuri="$(find /br/gopher/goomics -type f -regex ".*\.png" \ | |
+ | shuf -n 1 \ | |
+ | sed 's,/br/gopher,gopher://bitreich.org/I,')" | |
+ | |
+if [ -n "${goomicuri}" ]; | |
+then | |
+ annna-say -c "${channel}" "Today's goomic: ${goomeruri}" | |
+fi | |
+ | |
+ |