Spam Relay (two bots required)
TCL Code
Please Register to submit score.
| Average Score | 8.0 (of 1 scores) |
| Date Added | Nov 12, 2009 |
| Last Updated | May 02, 2010 |
| Tags | ban bot deop op spam |
Description
This is a DALnet specific script designed to be run on two eggdrops.
An OP'd bot, a DeOP'd bot.
The OP bot monitors messages from the deop bot, should anyone spam it.
The settings are currently set for the DeOP'd bot to cycle every 5mins.
Both spamcheck and docycle are easily enabled/disabled.
Check scripts for syntax.
An OP'd bot, a DeOP'd bot.
The OP bot monitors messages from the deop bot, should anyone spam it.
The settings are currently set for the DeOP'd bot to cycle every 5mins.
Both spamcheck and docycle are easily enabled/disabled.
Check scripts for syntax.
Nice. I like, it i don't know about any one else but i find it handy...
Al tho you could, do it so You Query, the bot, and it does the commands not in a Main, room Because then they'd know you have a Mole :O
Al tho you could, do it so You Query, the bot, and it does the commands not in a Main, room Because then they'd know you have a Mole :O
fixed 1:
fixed 2:
| Code: |
| bind msgm - * msg:spam:check proc msg:spam:check {nick uhost hand text} { global spamwords oppedbot foreach nospamchan [channels] { if {[channel get $nospamchan spamcheck]} { if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} { if {([onchan $nick $nospamchan]) && (![validuser $hand]) && (![isop $nick $nospamchan]) && (![isvoice $nick $nospamchan])} { foreach pattern $spamwords { if {[string match -nocase $pattern $text]} { putquick "PRIVMSG $oppedbot :spam $nospamchan $nick" } } } } } } return 0 } |
fixed 2:
| Code: |
| bind CTCP - ACTION spam:check proc spam:check {nick uhost hand dest key text} { global botnick spamwords oppedbot foreach nospamchan [channels] { if {[channel get $nospamchan spamcheck]} { if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} { if {![validuser $hand]} { if {([onchan $nick $nospamchan]) && (![isop $nick $nospamchan]) && (![isvoice $nick $nospamchan])} { foreach pattern $spamwords { if {[string match -nocase $pattern $text]} { putquick "PRIVMSG $oppedbot :spam $nospamchan $nick" } } } } } } } return 0 } |
The relay bot don't need to be an operator to continue the process. But the oppedbot yes.
Then, I completed the code with "if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} { }".
I forgot to edit the pubm...
Then, I completed the code with "if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} { }".
I forgot to edit the pubm...
| Code: |
| bind pubm - * pub:spam:check proc pub:spam:check {nick uhost hand chan text} { global spamwords oppedbot if {[channel get $chan spamcheck]} { foreach pattern $spamwords { if {[string match -nocase $pattern $text]} { if {([botonchan $nospamchan]) && ([onchan $oppedbot $nospamchan]) && (![isbotnick $nick])} { if {(![validuser $hand]) && (![isop $nick $chan]) && (![isvoice $nick $chan])} { putquick "PRIVMSG $oppedbot :spam $chan $nick" } } } } } return 0 } |






