!Do command - Public /me command

By falconr3 on Apr 07, 2010

Users who type: !do something here ur bot will do a /me command
example:

!do is laughing * Bot is laughing ```mirc on *:Text:!do *:#: { describe $chan $2- } } To make it only ops: on *:text:!do *:#: { if ($nick isop $chan) { describe $chan $2- } } ```

Comments

Sign in to comment.
Jethro   -  Apr 07, 2010

falconr3, you can consolidate these two text events into one. By placing two of them will result in a conflict where the second event fails, because of the same trigger command. You need to make another command a different name. You don't want to put one text per new remote file:

on *:text:*:#: {
  tokenize 32 $strip($1-)
  if ($1 == !do) {
    describe $chan $$2-
  }
  elseif (($1 == !do2) && ($nick isop $chan)) {
    describe $chan $$2-
  }
}

I also suggest that you use a symbol in front of the command, not just a word.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.