[NEW] Moderator BOT script

Moderator: GeekShed.Net Staff

[NEW] Moderator BOT script

Postby Paradox » Sun Jun 05, 2011 6:25 am

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
     
    }
    }
Paradox
 
Posts: 4
Joined: Sun Jun 05, 2011 5:25 am

Re: [NEW] Moderator BOT script

Postby Jackster35 » Sun Sep 04, 2011 6:04 am

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
Image
User avatar
Jackster35
 
Posts: 4
Joined: Thu Mar 04, 2010 7:49 pm

Re: [NEW] Moderator BOT script

Postby GrimReaper » Mon Sep 05, 2011 10:05 pm

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.
GrimReaper
 
Posts: 73
Joined: Wed Oct 28, 2009 4:34 pm
Location: In your router, Resetting your connection.


Return to Script help

Who is online

Users browsing this forum: No registered users and 2 guests