on *:action:*trigger*:#channel: {
if (something) { describe $chan response }
}
That's a basic idea of how it works. Your trigger can be whatever you want it to be. For example, "slaps" or "large trout" or whatever. The channel is the channel you want it to work in (or just # for all channels). The IF (something) part is any check you want to make. For example, seeing if ($me isin $chan). And your response is whatever you want it to be. You can use $nick to display the nick of the person you're responding to. Describe is how you script /me, so if you want an action, use that. If you want it to be a normal message, use msg instead.