KickBan Script for bots

By BalkY on Mar 03, 2007

Usage: !kb nick time reason
The time minimum is 1 minute.
For the reason it can and w/o reason
hf :D

on *:TEXT:*:#: {
  if ($1 == !kb) {
  if ($2 == $null) || ($3 == $null) || ($nick !isop $chan) { halt }
  else {
   set %1kb.nick $2
   set %1kb.time $3
   set %1kb.reason $4
    $iif(1 == 2,$null,%1kb.reason) { ban -ku $+ $calc(60 * %1kb.time $+ ) $chan %1kb.nick You were kicked by $nick Kicktime: %1kb.time ; Reason: No Reason gived. }
     $iif(1 == 2,%1kb.reason,$null) { ban -ku $+ $calc(60 * %1kb.time $+ ) $chan %1kb.nick You were kicked by $nick Kicktime: %1kb.time ; Reason: %1kb.reason $+. }
   }
}

Comments

Sign in to comment.
BalkY   -  Mar 04, 2007

oh i think i did it right? :D btw thx

 Respond  
no_body21   -  Mar 04, 2007

try recommending the help files for a start. :D

 Respond  
Aaron   -  Mar 04, 2007

0o sorry :P
$iif compares a statement and a: gives the true b: gives the false

try:
alias iif { $iif(1 > 3),echo -a yup, your insane,nope)
into remotes

 Respond  
Lindrian   -  Mar 04, 2007

Aaron, you shoudnt post anything that complicated for a new person. You might want to explain how it works, and why you use it.

 Respond  
BalkY   -  Mar 04, 2007

ok i edit it but i dont undarstand $iif :/

 Respond  
BalkY   -  Mar 04, 2007

i am new ^^

 Respond  
Aaron   -  Mar 03, 2007

also you can add in $iif for the kick reason:

$iif($4-,$4-,Banned)

 Respond  
Lindrian   -  Mar 03, 2007

bloody comments, well, use ban -uk, and U dont need to kick them afterwards, the -k will do it for u.

 Respond  
Lindrian   -  Mar 03, 2007

Shoudnt it be something like:
if ($1 == !kb) {
if ($2 == $null) || ($3 == $null) || ($nick !isop $chan) { halt }
else {
set %1kb.nick $2
set %1kb.time $3
set %1kb.reason $4

or? ;x

I suppose ur works, only mine shortens it down a lil.

 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.