write testing.txt $1-

Replace with
write testing.txt <add new text here> $1- <and also here>

use $1, $2, $3 to get the words you looking for.
Code:
on *:text:*:*: { if ($nick == Change-to-nick-here) { write testing.txt $1- | echo -a $2 is the second word in the line  } }


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }