<jess> floodbots in the building.. ohmai
<floodbot3> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<floodbot3> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<floodbot3> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<EggdropBot> [ floodbot3 ] Please stop flooding or repeating please!
<rez> yeah.. flooding is lame dude!
Also, I would like if the script could output the offenders nickname, as shown above. "[ Nick ] ReasonHere."# Set here the warning method you wish to use: (PRIVMSG or NOTICE)
variable wmeth NOTICE
##########################
# TEXT FLOOD #
##########################
#
## 1 ## Text flood (lines)
#
# use .chanset #channel ap:textl <lines>:<seconds> <btime> <pmeth> <btype> (in DCC, 0:0 to disable)
# Set default rate here:
lappend ap:udefs {ap:textl "5:4 08 w:k:kb 2"}
# Text flood (lines) kick msg.
set textl(kmsg) "No flooding / repeating."
# Text flood (lines) warn msg.
set textl(wmsg) "\[ $nick ]\ Please stop flooding or repeating please!"
## Edit the following only if you choose a punish method above 5 (oper commands):
# Text flood (lines) kline mask type.
set textl(ktype) 2
# Text flood (lines) kline/kill reason.
set textl(klmsg) "Text flooding is not permissable on this network."
# Text flood (lines) kline time (seconds or minutes depends on your ircd).
set textl(ktime) 0
Code: Select all
switch -- [set raw [string tolower [lindex [split $arg] 1]]] {
"privmsg" - "notice" {
set src [lindex [split $arg] 0]
set asbn [lindex [split $arg] 2]
if {![string equal -nocase $asbn $antispam(cnick)]} {return}
if {[scan $src {:%[^!]!%s} nick uhost] != 2} {return}
set text [join [lrange [split $arg] 3 end]]
if {[set advword [isspam $text]] == ""} {
if {$raw == "privmsg" && [string match ":\001DCC Send *\001" $text]} {set advword "DCC SEND"}
}
Razor wrote:
...
Meaning I would like the bot to reply all warnings to $chan, and not via PRIVMSG user, nor Notice user.
...
I am currently using Allprotection4.6b9 on an Eggdrop1.6.19 version.
...
"#" is built-in in the advertisement protection, if you wish to remote it you can add "#" to the adexempts list or if you wish to exempt the channel-name (like if you say #hello in #hello then it's okay) you can add %chan into the adexempts list.u2pop wrote:why when the list adwords is not added the *#* and when i said in the chan #hello or whatever contain # the bot reply me that
<bot> Warning: You've triggered adverting protection, advertisements are not allowed.
and the bot kick me
* You were kicked by bot (Advertising detected.. (*#hello*) ·21·)
Your problem is related to you Eggdrop installation and not to the script.gargamelron wrote:i had a problem loading the scripts
its show in my DEBUG files
The script checks every minute if a new limit is required and it would only increase the limit if more than 30% of the limit has been used. Sorry that won't change.Diamond85 wrote:Hello Sir_Fz.
I use the: tcl v4.6b9
I would love it if you have a second timer limit for the user would install. because the eggdrop would only every minute fraction of the new limit is not good and I think because if I limit the +3 offered only one new every minute, it is therefore well be that: he would review all of 30 seconds if a new limit is required. (My english is very bad use the google translator) and I hope you understand what I mean
and I would also be very happy if you would install the warning still everywhere
with friendly greetings.
Kamil
The link willyw shared should answer your question (thanks willyw).Razor wrote:I would like to change some minor features on this script. Meaning I would like the bot to reply all warnings to $chan, and not via PRIVMSG user, nor Notice user.
Code: Select all
putserv "privmsg $c : $jn : $wm "
Code: Select all
putserv "privmsg $c :[string map [list %nick $jn] $wm]"
You're welcome.Sir_Fz wrote: ...
The link willyw shared should answer your question (thanks willyw).
I think I'm a little confused by the second part of his request, so I didn't address it, and waited.As for adding the nickname of the offender in the warning message. I suggest the following modification (added to the modification made by willyw here):
Instead of...Code: Select all
putserv "privmsg $c : $jn : $wm "
Yes $jn contains the nickname, I just made it more flexible and gave him the option to place the nickname anywhere in his warning message (instead of it always appearing at the beginning of the line). So now he can place the variable %nick anywhere in the warning message and it will be replaced by the offender's nick.willyw wrote:Now, I have a curiosity question:
Doesn't $jn already do what he wanted?
... again, maybe I just don't understand his question.
Thanks
Ahhh....Sir_Fz wrote:Yes $jn contains the nickname, I just made it more flexible and gave him the option to place the nickname anywhere in his warning message (instead of it always appearing at the beginning of the line). So now he can place the variable %nick anywhere in the warning message and it will be replaced by the offender's nick.willyw wrote:Now, I have a curiosity question:
Doesn't $jn already do what he wanted?
... again, maybe I just don't understand his question.
Thanks