| View previous topic :: View next topic |
| Author |
Message |
stevegarbz Op
Joined: 04 Dec 2004 Posts: 104
|
Posted: Sat Mar 11, 2006 11:04 pm Post subject: How many putquick statements should I have? |
|
|
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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Mar 12, 2006 5:40 am Post subject: |
|
|
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 |
|
 |
stevegarbz Op
Joined: 04 Dec 2004 Posts: 104
|
Posted: Sun Mar 12, 2006 8:51 am Post subject: |
|
|
| Which one is the fastest? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Mar 12, 2006 9:46 am Post subject: |
|
|
puthelp is the slowest, then comes putserv and putquick. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
stevegarbz Op
Joined: 04 Dec 2004 Posts: 104
|
Posted: Sun Mar 12, 2006 9:53 am Post subject: |
|
|
| Ok, thank you very much. I changed it to 15:30 using putserv. |
|
| Back to top |
|
 |
stevegarbz Op
Joined: 04 Dec 2004 Posts: 104
|
Posted: Sun Mar 12, 2006 3:48 pm Post subject: |
|
|
| 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 |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Sun Mar 12, 2006 3:53 pm Post subject: |
|
|
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 |
|
 |
stevegarbz Op
Joined: 04 Dec 2004 Posts: 104
|
Posted: Sun Mar 12, 2006 4:05 pm Post subject: |
|
|
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 |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Mar 12, 2006 5:44 pm Post subject: |
|
|
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 |
|
 |
stevegarbz Op
Joined: 04 Dec 2004 Posts: 104
|
Posted: Sun Mar 12, 2006 11:16 pm Post subject: |
|
|
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 |
|
 |
|