Okay, I am not that good but I will try and give an example of a working on text, as well as an explanation, and an additional feature --
Here is an example >:
on 1:text:hello:#: {
msg $chan /me Hello $nick!
Code breakdown >: on '1' This is at what level you want it to activate at, All players have a 'level' which are assigned to them, so if someones level is 1 and the level is set to 5 - They won't be able to use the command '*' means it can be used by anyone negating the level factor.
Here is a on text say to someone else >:
on 1:text:!splat*:#: {
msg $chan $nick has splatted $2 with sticky goo!
Code breakdown >: The '$nick' refers to the actual user who initiated the command so if I was to type "!splat <username>" it would say I have splatted <username>. The '$2' refers to the second word typed if you wish it to be anywords AFTER(Including that word) then it would be $2- so if I typed the command the <username> typed would be the second word / name typed.
Here is an isop test command.
on *:text:!timeout*:#: {
if ($nick isop #) {
msg $chan /timeout $2
}
}
Code breakdown >: "if ($nick isop #)" the "$nick" I have mentioned already so I will ignore, "isop" this tests for the if the user trying has op status on the irc, so again, If the the user is not of op status, The commands won't activate, '#' You would change to '#michaelukz' (The IRC you wish it to be for).
*Note: All these work for twitch in which I presume you are coding for.