mIRC Homepage
Posted By: MaTrIxakosGr Kick and Ban help ! - 15/06/04 01:31 PM
Well, i want to private message to my bot
./msg kzmaps-bot ban "nick" "reason" "time" and
./msg kzmaps-bot "kick" "nick" "reason"
and the bot to do this operations...

time in minutes
my chan is #kzmaps
any help plz?
Posted By: Zyzzyx26 Re: Kick and Ban help ! - 15/06/04 05:00 PM
Code:
on [color:red]*[/color]:TEXT:*:?: {
 if ($1 == ban) { ban -u $+ $4 [color:blue]#[/color] $2 }
 elseif ($1 == kick) { kick [color:blue]#[/color] $2 $3- }
}
This should work. Just replace the * for the userlevel you have on the bot; and # for the channel you want.

There is no reason when you set a ban (just in kicks).

Hope this helps!
Zyzzy smile
© mIRC Discussion Forums