annna-message-sauna - 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 --- annna-message-sauna (569B) --- 1 #!/bin/sh -e 2 3 export PATH="/br/bin:$PATH" 4 5 cfgbase="$(pwd)" 6 ircbase="$(cat ${cfgbase}/ircbase)" 7 modbase="$(cat ${cfgbase}/modbase)" 8 9 server="$1" 10 ircuser="$(cat ${cfgbase}/${server}/ircuser)" 11 channel="$2" 12 user="$3" 13 text="$4" 14 cmd="$5" 15 16 [ "$user" = "${ircuser}" ] && exit 17 18 case "${cmd}" in 19 JOIN) annna-say -s "${server}" -c "${channel}" "Welcome ${user}! Please grab a towel and have fun!";; 20 PART) annna-say -s "${server}" -c "${channel}" $'\001ACTION puts the towel in the laundry.\001';; 21 esac 22 23 annna-message-common "${server}" "${channel}" "${user}" "${text}" "${cmd}" 24