i tried that but it doesn't set &rand, $chan and the } at the end
on *:text:*->*:*: { if ($nick == The-Nickname) { write testing1.txt | .timermsg 1 $rand(1,4) /msg $chan $9 }
}
}
It add it like this
.timermsg 1 3 /msg #Name-OfChannel "the word"
I don't want him to get me the channel name, i want him to put /msg $chan in the file.