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.

Notice while output is running

Help for those learning Tcl or writing their own scripts.
Post Reply
j
joke
Voice
Posts: 13
Joined: Fri Aug 19, 2005 7:20 am
Location: Karlsruhe
Contact:

Notice while output is running

Post by joke »

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
...
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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
j
joke
Voice
Posts: 13
Joined: Fri Aug 19, 2005 7:20 am
Location: Karlsruhe
Contact:

Post by joke »

Okay works fine, thank you.
Post Reply