Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix annnaversary - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 7b50b8513dd44081caddb942d2345665bb1bff61
parent c5906fd8a7d571e497bde3ee02b4f3f4181acb88
Author: Julian Schweinsberg <[email protected]>
Date: Mon, 11 Aug 2025 18:37:07 +0200
Fix annnaversary
I knew this bug existed (the $annnabirthday vs. $birth one) for quite
some time... whatever. Next year there will be an annnaversary.
Removes the unused curyear variable and fixes the message, too.
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M annnaversary-cronjob | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/annnaversary-cronjob b/annnaversary-cronjob
@@ -3,16 +3,15 @@
export PATH="$PATH:/home/annna/bin"
annnabirthday="1989-05-18"
-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 )"
+birthmonth="$( (echo obase = 10; date -d $annnabirthday +%m) | bc )"
+birthday="$( (echo obase = 10; date -d $annnabirthday +%d) | bc )"
+birthyear="$( (echo obase = 10; date -d $annnabirthday +%Y) | bc )"
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 -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.