on *:text:*"*vine*:#: {
if (($nick !isop $chan) && ($me isop $chan)) {
var %chanini $chan $+ -BotBans.ini
if ($read(%chanini,$2,Status) == $null) {
msg $chan .timeout $nick 600
timer 1 2 msg $chan .timeout $nick 600
echo $chan Probable bot. 10 Min time-out.
write %chanini $nick Status Timed-out. Probable bot.
}
elseif (($read(%chanini,$nick,Status) == (Timed-out. Probable bot.)) {
msg $chan .ban $nick
timer 1 2 msg $chan .ban $nick
echo $chan Matched line 2 times, banned.
write %chanini $nick Status Banned.
}
}
}
;-------------------------------------------
on @*:text:!clearbot *:#: {
var %chanini $chan $+ -BotBans.ini
if ($read(%chanini,$2,Status) == !$null) {
if (($read(%chanini,$nick,Status) == (Timed-out. Probable bot.)) {
write %chanini $nick Status Cleared by $nick $+ from status: Timed-out. Probable bot.
}
elseif (($read(%chanini,$nick,Status) == (Banned.)) {
write %chanini $nick Status Cleared by $nick $+ from status: Banned.
}
msg $chan Nickname deleted, $nick $+ .
}
else {
msg $chan That nickname isn't on the list.
}
}