First, and best, place to start is /help. I would look up /help on text for how to get commands to trigger. Next you might want to look for /help /mode, /help /kick, and just for an all around good tutorial /ircintro.

All the /commands can be typed in any window, and will bring you to the topic. Tou give you an idea, if you wanted to op a use when they type !opme, you could use

on @*:TEXT:!opme:#: {
/mode $chan +o $nick
}

On Text - Trigger when a user types something in the channel (:#:)
@ - Means only perform this command if the bot has op (+o/@)
@* - The * means trigger for all levels (for more help on use levels, try /help levels)
!opme - The text you are looking for
/mode - Set the mode on channel $chan to op the person who typed the command (that being $nick)