Introduction
Introduction Statistics Contact Development Disclaimer Help
chinese-newyear-cronjob - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
chinese-newyear-cronjob (653B)
---
1 #!/bin/sh
2
3 #set -x
4
5 export PATH="$PATH:/home/annna/bin"
6
7 chinesenewyear="$($HOME/.local/bin/lunar-find 春节 | cut -d: -f2 | cut…
8 cnyprior="$(date -d "$chinesenewyear - 1 day" +"%Y-%m-%d")"
9 cnypriorprior="$(date -d "$chinesenewyear - 2 day" +"%Y-%m-%d")"
10 curdate="$(LANG=C date -I)"
11 if [ "${curdate}" = "${cnypriorprior}" ];
12 then
13 annna-say -s "irc.bitreich.org" -c "#bitreich-en" "One day until…
14
15 #countdownd "$(date -d "+ 1 day" -I)" "#bitreich-en" "Chinese Ne…
16 fi
17
18 if [ "${curdate}" = "${cnyprior}" ];
19 then
20 annna-say -s "irc.bitreich.org" -c "#bitreich-en" "Today is a Ch…
21 fi
22
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.