trick-or-treat - 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 --- trick-or-treat (349B) --- 1 #!/bin/sh 2 3 export PATH="/home/annna/bin:$PATH" 4 5 case "$(( $RANDOM % 2 ))" in 6 1) 7 case "$(( $RANDOM % 3 ))" in 8 0) candy="🍬";; 9 1) candy="🍭";; 10 2) candy="🍫";; 11 esac 12 printf "you are so kind. Here is a candy: ${candy}" 13 ;; 14 0) 15 printf "BOO! ༼ つ ╹ ╹ ༽つ Did I scare you? Here's a spooky treat: $(boo)" 16 ;; 17 esac 18