Modes for justin.tv

By Gran_lider_negro on Jan 30, 2012

this is another simple command for justin.tv
!modsi + (nick)
!modno + (nick)
the command is only for the cnannel bot
enjoy ^^

on *:TEXT:!modsi*:#botchannel: {
  if ($nick == ownerbot) {
    msg # Esta bien no quiero :/ pero ahorita le doy :p poder a $2 
    mode # +o $2
  }
}

on *:TEXT:!modno*:#botchannel: {
  if ($nick == ownerbot) {
    msg # Entendido ahora mismo le quito el poder a :p $2 
    mode # -o $2
  }
}

Comments

Sign in to comment.
napa182   -  Jan 31, 2012

Jethro I don't think this person understands regex. So I think your example would be lost on them, and if you are going to go the regex way for this why use $strip($$2) when you can make it to use $regml(2).
eh what ever I guess...

 Respond  
Jethro   -  Jan 30, 2012

Just another way:

on @$*:text:/^!mod(si|no)( |$)/iS:#botchannel:{
  if ($nick == ownerbot) {
    msg # $+(E,$iif($regml(1) == si,sta bien no quiero :/ pero ahorita le doy :p poder a,$&
      ntendido ahora mismo le quito el poder a :p) $strip($$2)
    mode # $+($iif($regml(1) == si,+,-),o) $strip($$2)
  }
}
 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.