Remember that you cannot trigger it yourself if you use ON TEXT. Have someone else type it.
KidSol, although true that $chan is a nicer way (imo) to do if you want the text to the same channel, it could be that the text is meant to go to another channel, so showing that way to someone who is just learning scripting isn't a bad idea.