annna-message-idle - annna - Annna the nice friendly bot. | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
annna-message-idle (468B) | |
--- | |
1 #!/bin/sh -e | |
2 | |
3 export PATH="$HOME/bin:$PATH" | |
4 | |
5 cfgbase="$(pwd)" | |
6 ircbase="$(cat ${cfgbase}/ircbase)" | |
7 modbase="$(cat ${cfgbase}/modbase)" | |
8 idlebase="${modbase}/idlerpg" | |
9 | |
10 server="$1" | |
11 ircuser="$(cat ${cfgbase}/${server}/ircuser)" | |
12 channel="$2" | |
13 user="$3" | |
14 text="$4" | |
15 | |
16 [ "$user" = "${ircuser}" ] && exit | |
17 | |
18 case "${text}" in | |
19 *) | |
20 annna-say -c "${channel}" -s "${server}" "${user}, you will be p… | |
21 ;; | |
22 esac | |
23 | |
24 #annna-message-common "${server}" "${channel}" "${user}" "${text}" | |
25 |