Add towel day cronjob. - 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 5e9356b29932f98afbb66de896f860d6a3882434
DIR parent 5a6303fa8cfaeaae325a67cc2e58451d4dc4ddcb
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 15 Feb 2026 19:55:21 +0100
Add towel day cronjob.
Diffstat:
A towelday-cronjob | 16 ++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)
---
DIR diff --git a/towelday-cronjob b/towelday-cronjob
@@ -0,0 +1,16 @@
+#!/bin/sh
+#set -x
+
+export PATH="$PATH:/home/annna/bin"
+
+curdate="$(LANG=C date -I | cut -d- -f 2-)"
+if [ "${curdate}" = "05-24" ];
+then
+ annna-say -s "irc.bitreich.org" -c "#bitreich-en" "One day until Towel Day!"
+fi
+
+if [ "${curdate}" = "05-25" ];
+then
+ annna-say -s "irc.bitreich.org" -c "#bitreich-en" "Today is Towel Day! Wear it!"
+fi
+