this command in Private

By RaiNBoW_Six on Aug 08, 2008

this code in Private if you say kick nick then nick is kick or if you write in Private ban nick then nick kick+ban from chan :)

on *:text:*:?:{
  if ($strip($1) == !op) { mode #chan +o $nick } 
  if ($strip($1) == !deop) { mode #chan -o $nick } 
  if ($strip($1) == !master) { mode #chan +q $nick } 
  if ($strip($1) == !kick) { kick #chan $nick bye bye }
  if ($strip($1) == !v) { mode #chan +v $nick } 
  if ($nick isop #chan) { if ($strip($1) == kick) { kick #chan $2- } | elseif ($strip($1) == ban) { ban -ku300 #chan $2 2 $3- } } 

Comments

Sign in to comment.
AHBARAR   -  Aug 09, 2008

as napa128 said u should added the chan name or something :
on :text:!op:? {
if ($2 == $null) {
msg $nick Plz Put Channel Name After The Command !op
}
else {
mode $2 +o $nick
}
}
etc ....
and its better if u add an owner to bot or a level owner so no user can op him self by it too

 Respond  
DaNzO   -  Aug 09, 2008

Something like this would be better

on :TEXT:!kick :: if ($nick == EDITTHIS) { /kick $2 $3 Requested by ( $+ $nick $+ ) }
on
:TEXT:!Voice :: if ($nick == EDITTHIS) { /mode $2 +v $3 | .msg $2 $1 successfully voiced ~ Requested by ( $+ $nick $+ ) }

So on and so forth.
Though, Maybe some more kind of identification should be added, a botlevel script or a login script, something like that would work a treat.

  • DaNzO
 Respond  
Soulkeeper   -  Aug 08, 2008

Wouldn\'t you want the bot to kick someone else, not the one saying !kick? ;o

 Respond  
napa182   -  Aug 08, 2008

if you are doing this in a p2p you are going to have to include the channel name that you are kicking the person out of.

 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.