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 $birth +%m) | bc )" 7 birthday="$( (echo obase = 10; date -d $birth +%d) | bc )" 8 birthyear="$( (echo obase = 10; date -d $birth +%Y) | bc )" 9 curyear="$( date +%Y )" 10 curmonth="$( (echo obase = 10; date +%m) | bc )" 11 curday="$( (echo obase = 10; date +%d) | bc )" 12 message="Today is my birthday! Happy birthday to meeeeeeee!" 13 if [ "${birthmonth}${birthday}" = "${curmonth}${curday}" ]; 14 then 15 annna-say -c "#bitreich-en" "#{message}" 16 annna-say -s irc.libera.chat -c "#gopherproject" "${message}" 17 fi 18