Make numbers in brcon countdown bitreich style. - 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 --- DIR commit 4c0ec870ed3b99d8bccfd6d012c7a1a590f35661 DIR parent 1471ecccb7580cffdcd0d10e58562c875fda1ca0 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Thu, 13 May 2021 22:48:25 +0200 Make numbers in brcon countdown bitreich style. Diffstat: M brcon-countdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- DIR diff --git a/brcon-countdown b/brcon-countdown @@ -32,10 +32,10 @@ if [ $daysuntil -gt 0 ]; then case "$daysuntil" in 1) - daysstr="${daysuntil} day" + daysstr="$(int2bit ${daysuntil}) day" ;; *) - daysstr="${daysuntil} days" + daysstr="$(int2bit ${daysuntil}) days" ;; esac announce "${announcechannels}" \ @@ -51,10 +51,10 @@ then case "$dayssince" in 1) - daysstr="${dayssince} day" + daysstr="$(int2bit ${dayssince}) day" ;; *) - daysstr="${dayssince} days" + daysstr="$(int2bit ${dayssince}) days" ;; esac @@ -68,7 +68,7 @@ conferenceday=$((($(date +%s -d "${curdate}") - $(date +%s -d "${fromdate}T00:00 daytopic="$(grep -E "^$(date +%Y-%m-%d -d"${curdate}") - " "${schedule}" | cut -d' ' -f 3-)" announce "${announcechannels}" \ "$(printf "Welcome to bitreichcon %s day %s ( %s )! Schedule: gopher://bitreich.org/1/con/%s\n" \ - "${year}" "${conferenceday}" "${daytopic}" "${year}")" + "${year}" "$(int2bit ${conferenceday})" "${daytopic}" "${year}")" exit 0