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 

Notice while output is running

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


Joined: 19 Aug 2005
Posts: 13
Location: Karlsruhe

PostPosted: Sat Oct 21, 2006 5:17 am    Post subject: Notice while output is running Reply with quote

My bot shows a list which is 20 lines long on !bla command. When a second request is made as long as the first output is still running, the output is done after the first.

To prevent flooding I could make a timer, but the one who made the 2nd request has to wait a long time.

Is there any possibility to make a notice (like "bot is busy, plz wait") to the 2nd user WHILE the first output is running, I mean before the bot has finished the first 20 lines?

Example:

User1: !bla
Bot: (NOTICE user1) line 1
Bot: (NOTICE user1) line 2
Bot: (NOTICE user1) line 3
User2: !bla
Bot: (NOTICE user2) "bot is busy - plz wait a minute"
Bot: (NOTICE user1) line 4
Bot: (NOTICE user1) line 5
...
Back to top
View user's profile Send private message Visit poster's website
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Oct 21, 2006 5:24 am    Post subject: Reply with quote

Have the command that produces the output, use 'putquick' to say like "ok hold on..." when the command is first executed, and then the other output use 'puthelp' so that the putquick queue can be sent seperately from the puthelp queue..

Or you can also use the -next option for any of those queues:

puthelp <text> [options]
Description: sends text to the server, like 'putserv', but it uses a
different queue intended for sending messages to channels or people.
Options:
-next: push messages to the front of the queue

putquick <text> [options]
Description: sends text to the server, like 'putserv', but it uses a
different (and faster) queue.
Options:
-next: push messages to the front of the queue
Back to top
View user's profile Send private message
joke
Voice


Joined: 19 Aug 2005
Posts: 13
Location: Karlsruhe

PostPosted: Thu Nov 09, 2006 3:38 am    Post subject: Reply with quote

Okay works fine, thank you.
Back to top
View user's profile Send private message Visit poster's website
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