| View previous topic :: View next topic |
| Author |
Message |
joke Voice
Joined: 19 Aug 2005 Posts: 13 Location: Karlsruhe
|
Posted: Sat Oct 21, 2006 5:17 am Post subject: Notice while output is running |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Oct 21, 2006 5:24 am Post subject: |
|
|
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 |
|
 |
joke Voice
Joined: 19 Aug 2005 Posts: 13 Location: Karlsruhe
|
Posted: Thu Nov 09, 2006 3:38 am Post subject: |
|
|
| Okay works fine, thank you. |
|
| Back to top |
|
 |
|