Help - 09/03/15 07:30 AM
hello, me again, i need some help, i need a anti cmd spam script.
EXAMPLE: someone keep typing !cmds over and over again in my channel, and my bot will ignore the guy(using /ignore) and after 10 seconds, the bot will /ignore -r $nick
idk if that script is correct, please help.
and also, are there any mIRC $string/script that can generate a random word?like $rand , but that generate a random number
thx for reading
EXAMPLE: someone keep typing !cmds over and over again in my channel, and my bot will ignore the guy(using /ignore) and after 10 seconds, the bot will /ignore -r $nick
Quote:
on *:TEXT:!*:##stormtalk:{
inc -u4 %spamc. [ $1 [ $nick ] ]
if (%spamc. [ $1 [ $nick ] ] == 4) {
/notice $nick Bot Over Flooded, please try again shortly
ignore $nick
timer.$nick 1 10 /ignore -r $nick
}
}
inc -u4 %spamc. [ $1 [ $nick ] ]
if (%spamc. [ $1 [ $nick ] ] == 4) {
/notice $nick Bot Over Flooded, please try again shortly
ignore $nick
timer.$nick 1 10 /ignore -r $nick
}
}
idk if that script is correct, please help.
and also, are there any mIRC $string/script that can generate a random word?like $rand , but that generate a random number
thx for reading