annnaversary-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
---
annnaversary-cronjob (610B)
---
1 #!/bin/sh
2
3 export PATH="$PATH:/home/annna/bin"
4
5 annnabirthday="1989-05-18"
6 birthmonth="$( (echo obase = 10; date -d $annnabirthday +%m) | bc )"
7 birthday="$( (echo obase = 10; date -d $annnabirthday +%d) | bc )"
8 birthyear="$( (echo obase = 10; date -d $annnabirthday +%Y) | bc )"
9 curmonth="$( (echo obase = 10; date +%m) | bc )"
10 curday="$( (echo obase = 10; date +%d) | bc )"
11 message="Today is my birthday! Happy birthday to meeeeeeee!"
12 if [ "${birthmonth}${birthday}" = "${curmonth}${curday}" ];
13 then
14 annna-say -c "#bitreich-en" "${message}"
15 annna-say -s irc.libera.chat -c "#gopherproject" "${message}"
16 fi
17