This is a Channel Blacklist Script for your bot!
If you ever wanted to Blacklist a channel so your bot cant join there, here you go!
Just type !blacklist help for help :D!
Report any bugs on the IRC: irc.quakenet.org Port: 6667 Channel: #Defero or in the comments!
Have fun!
on *:LOAD:{
echo -a You have successfully loaded the Channel blacklist script by Defero.
echo -a For some command help just type +blacklist help $+ .
echo -a If you need some help join the channel #Defero on irc.quakenet.org
}
on 100:TEXT:+blacklist*:#:{
if ($2 == help) {
notice $nick The blacklist commands are:
notice $nick +blacklist add - adds a channel to the blacklist
notice $nick +blacklist remove - removes a channel from the blacklist
notice $nick +blacklist list - lists all blacklisted channels
}
elseif ($2 == add) {
set %blacklisted %blacklisted $3
notice $nick The channel $3 was added to the blacklist!
if ($3 ischan) {
msg $3 This channel was added to my blacklist by $nick $+ !
part $3
}
}
elseif ($2 == remove) {
if ($3 isin %blacklisted) {
set %blacklisted $remtok(%blacklisted,$3,1,32)
notice $nick The channel $3 was removed from the blacklist!
}
}
elseif ($2 == list) {
if (%blacklisted != $null) {
notice $nick Those channels are currently blacklisted: %blacklisted
else {
notice $nick Currently are No channels blacklisted.
}
}
}
}
on *:JOIN:#:{
if ($nick == $me) && ($chan isin %blacklisted) {
msg $chan This channel is on my blacklist!
part $chan
}
}