KilllerX commented on a Page, jHIKa - Slaps Back It  -  Mar 29, 2012

Truly it will go off, whenever someone does a
/me [text] $me ($me being the bots nick) or having the text after $me.

So they could be welcoming you back, hugging, slapping, kissing, or whatever. As long as your name is included in a /me line, it will activate.

on *:action:*slap*:#:{
  if ($me isin $1- && slap isin $1- && !%fl) {
    inc -u10 %fl
    .timer 1 2 describe # $replace($1-,$me,$nick,$chr(36),$+($chr(36),!),$chr(37),$+($str($chr(2),2),$chr(37)),|,$+($str($chr(2),2),|))
  }
}

something like this would check for the slap. granted, there are better ways, of checking. as you could also

on *:action:*slap*:#:{
  if ($me isin $1- && !%fl) {
    inc -u10 %fl
    .timer 1 2 describe # $replace($1-,$me,$nick,$chr(36),$+($chr(36),!),$chr(37),$+($str($chr(2),2),$chr(37)),|,$+($str($chr(2),2),|))
  }
}

Just a couple ways. checking for the slap would help prevent spam, and unneeded triggers.

that is without stripping the colors. If you want to do that. look it up. I don't need it for myself, as the place I use it, doesn't allow, colored text.

 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.