Here's a sample from my mIRC bot. Its basic but it seems to work pretty well for me. I use 2 separate mIRC clients to connect to the server one is me the other is the bot. To use the command you need to use the !act command. For example if you want your bot to eat an apple you would type the command: /msg botname !act eats an apple

The bot would then reply this: botname eats an apple

If you just type /msg botname !act

The bot would send you the notice: YourNickname You need to specify what action I am supposed to do.

Code:
On *:Text:*:?: {
  set %owner [color:blue]YourNickname[/color]
  set %channel #[color:blue]YourChatroom[/color]
  if ($nick == %owner) {
    if (!act isin $1-) {
      if ($2- == $null) {
        .timer 1 1 .notice $nick You need to specify what action I am supposed to do.
        halt
      }
      else {
        .timer 1 1 .describe %channel $2-
      }
    }
  }
}


All you gotta do is replace the blue highlighted text to your own name and chatroom and it should work fine. I only used this as an example from my bot. You can edit to your preference. Hope this helps.