Well I use this for my bot, so i figured, meh, why not release? :P
Basically !mycommand and that sample you replace with w.e command you want the person to Query to your bot or yourself or whatever. If they spam 6 lines in 3 seconds, it will ignore that person (/ignores them & Adds their nickname to a .ini and checks to see if they are ignored, because /ignore won't block query's if the query window is already opened.
Also, Don't forget to change the '#YourChannelHere'
P.S: I tested it and found no problems but please tell me if I made a mistake as I had to edit it from it's original version in order to post it here :)
; By Lavamike
; Thanks To:
; Scakk - Ignore Address & Query Closing
; mountaindew - .timer (Silenced) & Query Closing
on *:text:*:?:{
if ( $1 = !mycommand ) {
msg $nick It Works! :O
halt
}
msg $nick • Unknown Input ( $+ $1- $+ )
msg #YourChannelHere 4[ $+ $time $+ ]12 ( $+ PM $+ ) 7 $nick $+ : 4 $1-
inc -u3 %spam. [ $+ [ $nick ] ]
if (%spam. [ $+ [ $nick ] ] == 6) {
msg $nick 4[ $+ $time $+ ]12 Ignoring $nick - 3 Minutes - Flooding
msg #YourChannelHere 4[ $+ $time $+ ]12 Ignoring $nick - 3 Minutes - Flooding
ignore $address($nick,1)
close -m $nick
.timer 1 180 /ignore -r $address($nick,1)
.timer 1 180 /notice $nick Ignore Rule Lifted
.timer 1 180 /msg #YourChannelHere Ignore Rule Lifted ( $+ $nick $+ )
halt
}
}
my comment is this its a great idea but it would be better if it just covered all commands via pm instead of having to set each command with another copy of the script or something to that effect another thing is that I think the idea of messaging the channel to basically show the person is flooding the bot is a great idea but not on every message just like it does in the end to show they have been banned.
I just edited it on my end to do this and of course this is just a couple ideas it seems nice otherwise.
@ Scakk:
a. I don't know how to close the query window automatically
b. Without closing the query window automatically -p won't matter.
I've tested it and it says in the help file:
Note: If you have a /query window open with someone, private messages from them won't be ignored even if their address matches an ignore address.
@ mountaindew