| View previous topic :: View next topic |
| Author |
Message |
ryal Voice
Joined: 12 May 2005 Posts: 35
|
Posted: Mon Nov 07, 2005 5:03 am Post subject: Pb with several lines to display |
|
|
Here's my pb:
i made a script that is supposed to display (in pm) about 10 lines of text in average. But its very slow and if several people are using the command that triggers it, the bot put it all in queue. And i can imagine that if theres to many people to trigger it the bot will end up pinging out.
So is there a way to:
1/ display the messages faster ? (maybe an option i havent seen in .conf ...)
2/ display the messages at the same time for different people ? so that there is basically no queue
Thanks in advance guys.
As soon as i get rid of this issue, ill post my tcl and i hpe lots of people will find it usefull |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Nov 07, 2005 7:34 am Post subject: |
|
|
Speeding up the output will only cause your bot to flood out faster, you're searching for the worst. You have to do the opposite, use a slower queue. The slowest and most recommended for sending text is [puthelp]. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
ryal Voice
Joined: 12 May 2005 Posts: 35
|
Posted: Tue Nov 08, 2005 11:17 am Post subject: |
|
|
Thanks for your reply!
I did as you said and replaced my "putserv" with a "puthelp" and it works just fine. I have an other pr tho: when 2 people (or more) trigger the bot at the same time the bot sends the lines to the first one and then to the second. Is there any way to send them the lines simultaneously? so that the second one dont have to wait for a while before receiving.
Thanks in advance |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Nov 08, 2005 1:42 pm Post subject: |
|
|
If you don't want the bot to flood out, [puthelp] is what you need. Sending all the messages simultaneously will cause your bot to flood out, so I suggest you keep it the way it is now. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Nov 09, 2005 1:19 am Post subject: |
|
|
your imagination deceives you
you got it all wrong, it's the other way around - your bot will probably `ping out' if you don't use eggdrop's queueing facilities and dump stuff directly to server socket synchronously (using blocking I/O)
some servers allow sending PRIVMSG to multiple targets, check out yours _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
ryal Voice
Joined: 12 May 2005 Posts: 35
|
Posted: Wed Nov 09, 2005 5:51 am Post subject: |
|
|
Mine obviously don't.
Im still using using "puthelp" dont worry about that.
But heres what ive done: instead of having a process that contains a big "for" loop with a line to display within, i made a process that displays one line and then calls himself (till all the lines to display are done). This way it works just the way i wanted it to. Maybe some of you will laugh when they see the code cause it may not be that pretty haha.
Code is now ready so ill up it in the tcl archives section, hope you'll enjoy it, i know i do. Oh i forgot, what is it about? well basically the script consists in parsing a tv site to get information about shows. Since tvtome is gone and tv.com just sucks (sorry), i guess this tcl could seduce some of you. An example:
[10:56:28] <ryal> !epinfo csi new york
[10:56:31] <MOVINFO> (Show: CSI: New York)-(Next: 2x07-Manhattan Manhunt - airs the 2005-11-09)-(Previous: 2x06-YoungBlood - aired the 2005-11-02)
[10:57:14] <MOVINFO> For more info: http://episodeworld.com/modules.php?name=Show&op=show&csid=553
Thats it, thanks for your support about my (silly :p) questions guys! |
|
| Back to top |
|
 |
|