Commands

By God425 on Jan 04, 2010

Hello this is my commands script hope u like it.

;;;;;;;; Beta135 script ;;;;;;;;
;;;;;;;; any bugs go to vortexirc.homeip.net 6667 ;;;;;;;
;;;;;;;; Thank you ;;;;;;;;
on owner:TEXT:*:#:{ 
  if ($1 == !owner) { /mode $chan +qo $nick } 
  if ($1 == !deowner) { /mode $chan -qo $nick } 
  if ($1 == !Admin) { /mode $chan +ao $2 } 
  if ($1 == !DeAdmin) { /mode $chan -ao $2 } 
  if ($1 == !op) { /mode $chan +o $2 } 
  if ($1 == !deop) { /mode $chan -o $2 } 
  if ($1 == !halfop) { /mode $chan +h $2 } 
  if ($1 == !dehalfop) { /mode $chan -h $2 } 
  if ($1 == !voice) { /mode $chan +v $2 } 
  if ($1 == !devoice) { /mode $chan -v $2 } 
  if ($1 == !chankick) { /kick $chan $2- } 
  if ($1 == !ban) { mode +b $2 $chan $address($2,2) } 
  if ($1 == !unban) { mode -b $2 $chan $address($2,2) } 
  if ($1 == !join) { join $$2 }
  if ($1 == !nick) { nick $$2 }
  if ($1 == !part) { part $$2 }
}

Comments

Sign in to comment.
Jethro   -  Jan 04, 2010

Master of death, why $regml(3)? Also, you didn't construct your regex as such: /(matchstringhere)/, so your code won't work.

 Respond  
napa182   -  Jan 04, 2010

you may want to add a few checks to this but whatever

i used @ instead of ! cuz ! screws with the services bot commands

on $@*:TEXT:/@((de)?(op|protect|halfop|voice)|join|part|nick|(un)?(ban))/iS:#:{ 
  if ($istok(join part nick,$regml(1),32)) { $regml(1) $$2 }
  if ($istok(unban ban,$regml(1),32)) { mode # $+($iif($regml(1) == ban,+,-),b) $address($$2,2) } 
  else { .cs $regml(1) # $$2 }
}
 Respond  
God425   -  Jan 04, 2010

no cause that script works

 Respond  
Master-Of-Death   -  Jan 04, 2010

why make it so lengthy? this is simpler:

on $@*:TEXT:((!)(join|part|(un)?ban|(de)?admin|\S+)):#:{
if ($regml(3) == (join|part)) {
$regml(3) $2
}
elseif ($regml(3) == ban) {
.raw -q mode # +b $address($2,2)
}
elseif ($regml(3) == unban) {
.raw -q mode # -b $address($2,2)
}
elseif ($regml(3) == deadmin) {
.cs deprotect # $2
}
elseif ($regml(3) == admin) {
.cs protect # $2 
}
else {
.cs $regml(3) # $2
}
 Respond  
God425   -  Jan 04, 2010

ty

 Respond  
napa182   -  Jan 04, 2010

you click where it says Edit

 Respond  
p0d   -  Jan 04, 2010

theres an edit link above the code just click edit paste over old code

 Respond  
God425   -  Jan 04, 2010

how can i uodate it

 Respond  
napa182   -  Jan 04, 2010

God425 you need to update ur old snippet and not post it as a new snippet as stated in the rules..

 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.