Page 1 of 1

[NEW] Moderator BOT script

PostPosted: Sun Jun 05, 2011 6:25 am
by Paradox
My earlier version may have problems, Because of 3Way not messing with my scripts. Here you go

Code: Select all
    on *:TEXT:*:#:{
     
    if ( $nick isop $chan || $me isop $chan ) {
     
    if ( $1 == .kick ) { /kick $chan $2 $3- | /notice $nick $2 has been kicked! }
     
    if ( $1 == .ban )  { //mode $chan +b $address($2,2) | /notice $nick $2 has been banned  }
     
    id ($1 == .kb ) { //mode $chan +b $address($2,2) | /kick $chan $2 $2- | /notice $nick $2 has been kicked and banned }
     
    if ( $1 == .moderate ) { /mode $chan +m | /msg $chan This Channel is now under moderation, only voice + users can talk! }
     
    if ( $1 == .unmod ) { /mode $chan -m | /msg $chan The moderation has now ended, Please Follow the Rules }
    }
     
    if ( $1 == .rules ) {
    /notice $nick Rule 1: blah
    /notice $nick Rule 2: Meh
     
    }
    }

Re: [NEW] Moderator BOT script

PostPosted: Sun Sep 04, 2011 6:04 am
by Jackster35
This is probably another one of the scripts you ripped. A bit like you did with the WildPHP code you ripped. I'm convinced you didn't make this.

I'm not using it as I could make a more advanced one, but still, if you didn't make it, please stop uploading them or maybe give credit to the original owner.

Thanks -Jack

Re: [NEW] Moderator BOT script

PostPosted: Mon Sep 05, 2011 10:05 pm
by GrimReaper
Another way you could do this is
Code: Select all
on $*:TEXT:/^.(kick|ban|kb|moderate|unmod|rules)/Si:#:{
  if ( $nick isop $chan || $me isop $chan ) {   
    if ($regml(1) == kick) { kick $chan $2 $3- | notice $nick $2 has been kicked! }
    if ($regml(1) == ban)  { mode $chan +b $address($2,2) | notice $nick $2 has been banned  }
    if ($regml(1) == kb) { mode $chan +b $address($2,2) | kick $chan $2 $2- | notice $nick $2 has been kicked and banned }
    if ($regml(1) == moderate) { mode $chan +m | msg $chan This Channel is now under moderation, only voice + users can talk! }
    if ($regml(1) == unmod) { mode $chan -m | msg $chan The moderation has now ended, Please Follow the Rules }
  }
  if ($regml(1) == rules) {
    notice $nick Rule 1: blah
    notice $nick Rule 2: Meh
  }
}

Also no need for all the / as mIRC will evaluate the identifiers as it's a remote script.

NOTE: This is untested.. But should still work.