Kickban script (v1.1) with lastban function.
Commands:
!kb nick* (Kickbans the specified nick.)
!lastban (Shows the person who were last banned.)
!bancount (Shows how many pepz have been banned on youw channel.)
I will be updating on this one and also include more functions.
Made by BoosteeR
(Feel free to use all my scripts on your own channel)
Change list:
Fixed ban command to adress ban.
Update with the one WorldDMT posted.
08-09 - Fixed and reupdated to my old script.
08-09 - Created a ban counting system. (BETA)
08-09 - Added date to the !lastban command.
30-04 - Started working again and updated script, so now its working. Also updated to 1.1.
To-do list:
Make !unban command.
Make seperate !ban and !kick commands.
Make !mute command.
Cleanup!
on *:text:*:#:{
if ($1 == !kb) && ($nick isop $chan) && ($me isop $chan) {
set %chan $chan
set %victim $2
set %banner $nick
ban -k $chan $2 5 $nick
notice %ban.nick %victim kickbanned you.
inc -q %ban.count 1
}
if ($1 == !lastban) {
msg $chan The last banned was %victim and were banned by: %banner. There has now been %ban.count banned.
}
if ($1 == !bancount) {
msg $chan On $chan %ban.count has been banned.
}
if ($1 == !reset) {
set %ban.count 0
notice $nick Bancount is reset.
}
}
u have to check if your bot is an OP in channel so u can do it by adding "@" before level and better to use $strip bcz some user use bold or color text an this wont work with your code and make sure if $2 is on channel or not and u can add at end or ban -k the kick msg and remove the notice finaly if your bot is in 2 channel or more the last kicked have to be informed in the same channel not for any one so better to use %var $+ #
on @*:text:*:#:{
if ($strip($1) == !kb) && ($nick isop #) && ($2 ison #) {
set %info $+ # $2 $nick
ban -k # $2 5 $nick kickbanned you.
}
elseif $strip($1) == !lastban {
tokenize 32 %info [ $+ [ # ] ]
if ($0) msg # Last banned was $1 and got banned by: $2
}
}