Internal User List Script, Useful for making a bot for a channel that has access levels, and you wish to restrict users to the bots access, type !add <nickname> <level> to add them to a certain access level.
on 100:TEXT:!add *:#: {
if (!$2) {
msg $chan To add a user type (!add nick level) you need level 100 and the person has to be on chan.
}
else {
if ($2 !ison $chan) {
msg $chan $2 is not on chan
}
else {
if ($ulevel >= 100) && ($3) {
guser -a $3 $2 2
msg $chan $nick has just given $2 level $3 bot access.
}
else {
notice $nick You are Not Authorized to use this command.
}
}
}
}
Opban script, Basically, if you need to ban an Op, you can type !opban <nickname> and it will deop them then ban and kick them.
on 100:TEXT:!opban *:#: { if ($2 isop #) { mode $chan -o $2 | kick # $2 | ban # $2 2 | msg $chan $2 was banned by $nick Reason: $3- } }
Ban script, Type !out <nickname> to kickban them.
on 5:TEXT:!out *:#: {
if ($nick ison #) && ($2 != $me) {
ban -k # $2 2 $2 has been banned from $chan Reason: $3- }
}
Bot Join script, type !join <channel> to make him join a channel.
on 5:TEXT:!join *:#: { if ($me ison $2-) { msg # I am already situated on $2- $+ . | halt } | if ($me !ison $2-) { msg # I am now joining $2- $+ . | join $2- } }
Blacklist script, type !blacklist <nickname> to blacklist them from the channel the bot is on.
on 100:TEXT:!blacklist *:#: {
if ($2 != $me) && ($2 ison $chan) {
writeini blacklist.ini $chan $address($2,2) $iif($3 != $null,$3-,no reason given)
ban -k $chan $2 2 $iif($3 != $null,$3-,no reason given)
msg # $2 has been blacklisted from $chan for: $iif($3 != $null,$3-,no reason given)
}
}
on *:JOIN:#: {
if ($readini(blacklist.ini,$chan,$wildsite) != $null) {
ban -k $chan $nick $2 2 $ifmatch
}
}