Add groundhog day cronjob. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 188cb2758c98d54ec82827974144aeac5f172f51
(DIR) parent a5fde89c35375cbde4e593bd824597d83b3dbb27
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sat, 25 Feb 2023 11:29:34 +0100
Add groundhog day cronjob.
Diffstat:
A groundhog-cronjob | 11 +++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/groundhog-cronjob b/groundhog-cronjob
@@ -0,0 +1,11 @@
+#!/bin/sh
+#set -x
+
+export PATH="$PATH:/home/annna/bin"
+
+curdate="$(LANG=C date -I | cut -d- -f 2-)"
+if [ "${curdate}" = "02-02" ];
+then
+ annna-say -s "irc.libera.chat" -c "#gopherproject" "Today is Groundhog day! Celebrate! gophers://bitreich.org/1/groundhog-day"
+fi
+