Add daily fortune cookie to #bitreich-books - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
DIR commit 42dc8132c6bc647844506988e495325068e313d3
DIR parent acd5a645e70c6a5e1187b86aa89827eb6f6ecae8
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 21 Jul 2024 21:17:11 +0200
Add daily fortune cookie to #bitreich-books
Diffstat:
A fortune-cookie-of-day | 13 +++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)
---
DIR diff --git a/fortune-cookie-of-day b/fortune-cookie-of-day
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+channel="#bitreich-books"
+
+export PATH="$PATH:/home/annna/bin"
+
+fortunecookie="$(fortune-cookie)"
+if [ -n "${fortunecookie}" ];
+then
+ annna-say -c "${channel}" "Today's fortune: ${fortunecookie}"
+fi
+
+