egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How many putquick statements should I have?

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
stevegarbz
Op


Joined: 04 Dec 2004
Posts: 104

PostPosted: Sat Mar 11, 2006 11:04 pm    Post subject: How many putquick statements should I have? Reply with quote

I've got a greet script that is set to greet people who join channel 'x' using the 'putquick' statement. It greets 8 people in 30 seconds, max. Is this too much, or can I increase the limit? The higher the number, the better. I don't want to flood out my bot, though.

I'm also running a few other scripts, but they aren't contant like this one.

Thanks!
Steve
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Sun Mar 12, 2006 5:40 am    Post subject: Reply with quote

If you would like to increase that amount of messages use a slower queue like 'puthelp' or 'putserv'
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
stevegarbz
Op


Joined: 04 Dec 2004
Posts: 104

PostPosted: Sun Mar 12, 2006 8:51 am    Post subject: Reply with quote

Which one is the fastest?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Mar 12, 2006 9:46 am    Post subject: Reply with quote

puthelp is the slowest, then comes putserv and putquick.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
stevegarbz
Op


Joined: 04 Dec 2004
Posts: 104

PostPosted: Sun Mar 12, 2006 9:53 am    Post subject: Reply with quote

Ok, thank you very much. I changed it to 15:30 using putserv.
Back to top
View user's profile Send private message
stevegarbz
Op


Joined: 04 Dec 2004
Posts: 104

PostPosted: Sun Mar 12, 2006 3:48 pm    Post subject: Reply with quote

Hmm, I've used about 3 greet scripts so far, and all of them seem to stop working after a period of time... any ideas why? Bot isn't flooded out.
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Sun Mar 12, 2006 3:53 pm    Post subject: Reply with quote

I personally would use puthelp and dont care any more about flood. I have used puthelp to dump larger amounts of text (command helps), but never ever had any trouble with it. puthelp usually sends the lines in about (rather more) than 2 sec delays and since the server usually kicks for about 512byte in 2 sec and 1 line cannot be bigger than 512 (510 + \r\n) bytes you theoretically cannot be dropped, unless some lag or many putquick statements occur. putserv statements while puthelp queue is played will first put from normal queue and after that continue with help queue.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
stevegarbz
Op


Joined: 04 Dec 2004
Posts: 104

PostPosted: Sun Mar 12, 2006 4:05 pm    Post subject: Reply with quote

I'm using the following script:

Code:
set onjoin_msg {
 {
  "Hello, $nick - $chan is powered by www.PrecisionEffect.com / #PE - Premium Web Hosting"
 }
}
set onjoin_chans "#chicago.cs #esbuilder #terroarized #enervate #angkor #divine #opposition"

bind join - * join_onjoin

putlog "Onjoin greet script loaded"

proc join_onjoin {nick uhost hand chan} {
 global onjoin_msg onjoin_chans botnick
 if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_chans == "*")) && (![matchattr $hand b]) && ($nick != $botnick)} {
  set onjoin_temp [lindex $onjoin_msg [rand [llength $onjoin_msg]]]
  foreach msgline $onjoin_temp {
   puthelp "NOTICE $nick :[subst $msgline]"
  }
 }
}


For some reason, after it sends a few times, the bot stops sending all public messages? This happened on 2-3 greet scripts I have used, I kept switching thinking it was the script. Please help!

EDIT: Sometimes it works, sometimes it does not.
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Mar 12, 2006 5:44 pm    Post subject: Reply with quote

The puthelp queue may become very slow sometimes because of huge stack in it, just wait a little bit and I'm sure all messages are going to be delivered. Also, make sure that your server doesn't have some limit for msgs (most servers do).
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
stevegarbz
Op


Joined: 04 Dec 2004
Posts: 104

PostPosted: Sun Mar 12, 2006 11:16 pm    Post subject: Reply with quote

I had to remove the script. My bot stopped processing all public commands, including channel protection and global ads.

This is using a NOTICE method, so it shouldn't be getting a target change or anything like that? Please help, I want this to be functional.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber