forked from zgrep/happybot
aeo
This commit is contained in:
parent
55889129a7
commit
b2563463c6
|
@ -7,5 +7,8 @@ irc | while read -r n m; do
|
||||||
if reg '^((happy|hate)bot[:,]? ?)(rm|destroy|boom|wipe) ?(the)? ?logs?$' "$m"; then
|
if reg '^((happy|hate)bot[:,]? ?)(rm|destroy|boom|wipe) ?(the)? ?logs?$' "$m"; then
|
||||||
echo -n '' > '/home/zgrep/offtopiabday/irc.freenode.net/'"$chan"'/out'
|
echo -n '' > '/home/zgrep/offtopiabday/irc.freenode.net/'"$chan"'/out'
|
||||||
echo 'Logs have been wiped.' | zwsp | say;
|
echo 'Logs have been wiped.' | zwsp | say;
|
||||||
|
elif reg '^((happy|hate)bot[:,]? ?)(leave|part|die)$' "$m"; then
|
||||||
|
echo 'Bye bye.' | zwsp | say;
|
||||||
|
echo '/part '"$chan" > '/home/zgrep/offtopiabday/irc.freenode.net/in';
|
||||||
fi;
|
fi;
|
||||||
done;
|
done;
|
||||||
|
|
Loading…
Reference in New Issue