This script starts to check for flags on join.
You are allowed to have X strikes (changeable), when checking for flags and you get 'no access', a message is sent to the development channel
You can set a channel of your choice, where the information about the strikes should go.
After the strikes, a final message is sent, and the bot will part the channel, it will not send any messages to the channels its on, only the development channel, if you wish it should do that, you have to edit the script.
I hope this is what you are looking for.
If you have any problems, please post them here.
- Code: Select all
alias -l inifile { return file.ini }
alias -l developmentchannel { return #development_channel }
alias -l totalstrike { return 3 }
raw 366:& & *: {
.checktimer $2
}
alias checktimer {
if ($readini($inifile,react,$1) == $totalstrike) {
if ($me ison $1) {
echo -st .part $1
}
$+(.timer(checkflag.,$1)) off
.remini $inifile react
msg $developmentchannel Strike out on $+($chr(2),$1,$chr(2)) - I'm parting the channel.
return
}
if (!$timer(checkflag. [ $+ [ $1 ] ])) {
$+(.timer.checkflag.,$1) 1 300 checktimer $1
.msg Q chanlev $1
}
}
on *:NOTICE:*:?: {
if ($nick == Q) {
if (*You do not have sufficient access on* iswm $1-) {
.writeini $inifile react $8 $calc($readini($inifile,react,$8)+1)
msg $developmentchannel I have no flags on $+($chr(2),$8,$chr(2)) Strike: $+($chr(2),$readini($inifile,react,$8),$chr(2),/,$chr(2),$totalstrike,$chr(2))
}
}
}