This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Help with advertising bot script

Old posts that have not been replied to for several years.
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Help with advertising bot script

Post by stevegarbz »

Hey, I currently have this script:

Code: Select all

##### GENERAL SETTINGS ####
# EDIT the channel names or REMOVE one or two depending on which channel you intend the bot the advertise
set channel "#GlowFactory #penance #gambino #EZ5 #unitedenmity #team.s2r #insane5! #teamglobal #temper #Findscrim-main #Toronto #Goat #sourceringer"
# Edit the time cycle which is in minutes format depending on the time intervals you want the bot to flow out the advertisment
set time 30

# EDIT the text or REMOVE or ADD lines including inverted commas at the starting and ending at each line 
set text {
"Are you looking for professional, inexpensive webhosting, quality domain names, LOW ping game servers, or PROFESSIONAL web design? We offer webhosting packages at only $4 a month and consist of all the bandwidth and storage that you need! Domains are at $10 a year and we do accept PayPal! GlowFactory's professional design team can develop your professional, inexpensive website in just a matter of days! Stop by #GLOWFACTORY today!"
}

##### DO NOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING #####

if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }
if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }

proc go {} {
global channel time text timer
foreach chan $channel {
foreach line $text { putserv "PRIVMSG $chan :$line" }
}
if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }
}

putlog "Loaded Advertise Script by es"
Only problem is that whenever it sends to the channels it floods out. Is there any way that someone can either:

1) Know of a different script with flood protection?
2) Can fix this script so it doesn't flood out?

Those things will be greatly appreciated. Thank you for your time.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

I normally don't help spammers, but let us see if a spammer can make sense of this:

Code: Select all

set queue {}
set frequency 2 ;# seconds
proc getqueue {} {
	if {$::queue != {}} {
		puthelp [lindex $::queue 0]
		set ::queue [lreplace $::queue 0 0]
	}
	utimer $::frequency getqueue
}
proc putqueue {str} {
	lappend ::queue $str
}
getqueue
hint: use [putqueue] instead of [putserv]
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Sorry, I never intended to spam. I don't know where to put that :\
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

well, if unsolicited advertising is not spam, I don't have a clue what spam is

you add the code to your script and use the hint
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Why can't you just show me? I never intended to spam... I just posted in one part of the forum and thought it was the wrong section so I posted another.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

demond wrote:hint: use [putqueue] instead of [putserv]
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Yeah I know how to change that but where do I insert his script? Right now I have it:

Code: Select all

##### GENERAL SETTINGS ####
# EDIT the channel names or REMOVE one or two depending on which channel you intend the bot the advertise
set channel "#PE"
# Edit the time cycle which is in minutes format depending on the time intervals you want the bot to flow out the advertisment
set time 30

# EDIT the text or REMOVE or ADD lines including inverted commas at the starting and ending at each line 
set text {
"AD"
}

##### DO NOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING #####

if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] }
if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }

set queue {} 
set frequency 2 ;# seconds 
proc getqueue {} { 
   if {$::queue != {}} { 
      puthelp [lindex $::queue 0] 
      set ::queue [lreplace $::queue 0 0] 
   } 
   utimer $::frequency getqueue 
} 
proc putqueue {str} { 
   lappend ::queue $str 
} 
getqueue 

proc go {} {
global channel time text timer
foreach chan $channel {
foreach line $text { putqueue "PRIVMSG $chan :$line" }
}
if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }
}

putlog "Loaded Advertise Script by es"
I removed the ad if you were mad about that. I only have it going in 1 channel now, but when it trys to do them all it floods out.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

if it still gets desconnected with "Excess Flood" reason, that can't possibly be because of this script - check your other scripts and do as much logging as possible (including +d); also experiment with frequency value
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

What does the frequency value do. And this is because I am running the ad in about 13 channels, not just 1 like it shows on the code.

It still floods out. It only gets sent to 2 channels
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

it doesn't matter how many channels this is run on, the freq value specifies how fast the output queue is being flushed to the server - in my code, that's being done every 2 seconds - i.e. you have a single message (doesn't matter for which channel) sent to the server every 2 seconds, for as long as the output queue is not empty - and this shouldn't flood the bot out (unless you are on a server with nazi flood settings)
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Gamesurge :\ Are there any other scripts will full flood protection all in one?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you didn't get this to work?
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Nope, it still floods out with "Excess Flood" after it messages like 2-3 channels - It's not gamesurge I can assure you that.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

heh, this is the simplest (yet efficient) form of output rate limiting - if you can't get this to work... you better stick with ready-made scripts and hope for the best (although I fail to see how another output rate limiting scheme would work for you, given that this wouldn't - I'd bet you somehow messed it up, possibly with another script)
Last edited by demond on Fri Jun 17, 2005 6:10 pm, edited 1 time in total.
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Any answer?
Locked