This commit is contained in:
zgrep 2018-08-23 17:25:43 -04:00
parent 55889129a7
commit b2563463c6
1 changed files with 3 additions and 0 deletions

View File

@ -7,5 +7,8 @@ irc | while read -r n m; do
if reg '^((happy|hate)bot[:,]? ?)(rm|destroy|boom|wipe) ?(the)? ?logs?$' "$m"; then
echo -n '' > '/home/zgrep/offtopiabday/irc.freenode.net/'"$chan"'/out'
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;
done;