Typing /help remote tells you about events:

"All of the following Events use the same general format except for the ctcp and raw events. The sections below provide you with information on each event as well as examples and tips on how to use them."

With a large list. including TEXT shocked

There are also various intro to scripting tutorials across the web that don't take too much trouble to find.