on *:TEXT:*:#mybotchan:{ if ($nick == bot && $+($chr(91),test,$chr(93)) isin $strip($1-)) { write BOTDB.txt $1- } }