groundhog-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
---
groundhog-cronjob (577B)
---
1 #!/bin/sh
2 #set -x
3
4 export PATH="$PATH:/home/annna/bin"
5
6 curdate="$(LANG=C date -I | cut -d- -f 2-)"
7 if [ "${curdate}" = "02-01" ];
8 then
9 annna-say -s "irc.libera.chat" -c "#gopherproject" "One day until Groundhog Day! gophers://bitreich.org/1/groundhog-day"
10
11 #countdownd $(date -d "+ 1 day" -I) "irc.libera.chat/#gopherproject" "Groundhog Day"
12 fi
13
14 if [ "${curdate}" = "02-02" ];
15 then
16 annna-say -s "irc.libera.chat" -c "#gopherproject" "Today is Groundhog day! Celebrate! gophers://bitreich.org/1/groundhog-day gophers://bitreich.org/9/memecache/groundhog-day-wakeup.mkv"
17 fi
18