I got bored and decided to make this blacklist script.
It has been tested so it works.
Just thought i would post it
I am currently working on a newer version of it with more features.
Features to come.
[b]
On/Off. I will be adding an On/Off feature for the script.
Appeal. so you can appeal the blacklist.
Reason. Displays the reason that user was banned.
Exempt List. So you can add people that won't be blacklisted even if the bot is told to Blacklist them.
[/b]
Misc Items.
[b]
Blacklist Game. Just a game i thought i would add for fun.
[/b]
I will be adding other things to the script as well.
So check back frequently.
On *:Text:*:#:{
var %Blacklist write Blacklist.txt $address($2,1)
var %Delete write -dl [ $+ [ $address($2,1) ] ] Blacklist.txt
var %Check $read(Blacklist.txt)
tokenize 32 $strip($1-)
if ($1 == Blacklist) { %Blacklist | msg $chan $2 Added to my Blacklist files. | mode $chan +b $address($2,1) | kick $chan $2 Reason: $3- Blacklisted! }
elseif ($1 == Delete) { if (%Check = $null) { msg $chan $2- Isn't blacklisted $nick $+ . }
else { %Delete | msg $chan $2 deleted from my Blacklist files $nick $+ . }
}
elseif ($1 == Check) { if (%Check = $null) { msg $chan $2 isn't Blacklisted $nick $+ . }
else { msg $chan $2 is Blacklisted under the address %Check $+ . }
}
}
Burrito has a valid point with certain restriction to people allowed.
You should make sure if a nickname to be added to the black list is on the channel. People can easily abuse this script by adding bogus nicknames that don't exist. You may also need a trigger flood protection to protect the client running the code from being flooded or spammed.