Introduction
Introduction Statistics Contact Development Disclaimer Help
Add daily sabotage hint. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit bf8d287fae7aaae47200fe24e70fabd2cb838c64
parent e28d72e2ba50f4957d00d0e8bed37f779c93b293
Author: Annna Robert-Houdin <[email protected]>
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(-)
---
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
+
+
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.