Introduction
Introduction Statistics Contact Development Disclaimer Help
Add programmer day cronjob - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 92201062beed357f4cea3a3edf2c792d6ea643b5
parent d531c96795e6ff6054a0bdec19954ec4e2dcad98
Author: Annna Robert-Houdin <[email protected]>
Date: Wed, 13 Sep 2023 13:23:12 +0200
Add programmer day cronjob
Diffstat:
A programmer-day-cronjob | 18 ++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/programmer-day-cronjob b/programmer-day-cronjob
@@ -0,0 +1,18 @@
+#!/bin/sh
+#set -x
+
+export PATH="$PATH:/home/annna/bin"
+
+curdate="$( date +%j )"
+if [ "${curdate}" = "256" ];
+then
+ annna-say -c "#bitreich-en" "One day until Programmer day!"
+
+ countdownd $(date -d "+ 1 day" -I) "#bitreich-en" "Programmer Day"
+fi
+
+if [ "${curdate}" = "256" ];
+then
+ annna-say -c "#bitreich-en" "Today is Programmer day! Write Code!"
+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.