Introduction
Introduction Statistics Contact Development Disclaimer Help
Add cronjob for annna's birthday - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 04dedc81dddc3a4f2f40f1e8a3395b33815370ed
parent 54bf2c2617741716b9afbbf7b4b105f30f0bcfdd
Author: Scarlett McAllister <[email protected]>
Date: Tue, 26 Mar 2024 06:57:29 -0300
Add cronjob for annna's birthday
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
A annnaversary-cronjob | 18 ++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/annnaversary-cronjob b/annnaversary-cronjob
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+export PATH="$PATH:/home/annna/bin"
+
+birth="2018-02-04"
+birthmonth="$( (echo obase = 10; date -d $birth +%m) | bc )"
+birthday="$( (echo obase = 10; date -d $birth +%d) | bc )"
+birthyear="$( (echo obase = 10; date -d $birth +%Y) | bc )"
+curyear="$( date +%Y )"
+curmonth="$( (echo obase = 10; date +%m) | bc )"
+curday="$( (echo obase = 10; date +%d) | bc )"
+message="Today is my birthday! Happy birthday to meeeeeeee!"
+if [ "${birthmonth}${birthday}" = "${curmonth}${curday}" ];
+then
+ annna-say -c "#bitreich-en" "#{message}"
+ annna-say -s irc.libera.chat -c "#gopherproject" "${message}"
+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.