Add daily sabotage hint. - 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 bf8d287fae7aaae47200fe24e70fabd2cb838c64
DIR parent e28d72e2ba50f4957d00d0e8bed37f779c93b293
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Wed, 26 Mar 2025 17:23:35 +0100
Add daily sabotage hint.
Diffstat:
A sabotage-of-day | 14 ++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)
---
DIR diff --git a/sabotage-of-day b/sabotage-of-day
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+channel="#bitreich-books"
+
+export PATH="$PATH:/home/annna/bin"
+
+sabotagedb="/home/annna/bin/modules/simple-sabotage-field-manual/sabotage.txt"
+sabotage="$(shuf -n 1 ${sabotagedb} | cut -d ' ' -f 2-)"
+if [ -n "${sabotage}" ];
+then
+ annna-say -c "${channel}" "Today's sabotage: ${sabotage}"
+fi
+
+