mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2016
Posts: 3
C
Self-satisified door
OP Offline
Self-satisified door
C
Joined: Sep 2016
Posts: 3
Hello how can I add a delay for my bot, I recently added in a channel with + 1 k viewers and viewers use it frequently, I would like to know how can I do so that there is a delay between each command.

*The bot have mod in the channel.
*I used translate.

Thanks.

Last edited by candersonop; 30/10/16 11:50 PM.
Joined: May 2015
Posts: 249
Fjord artisan
Offline
Fjord artisan
Joined: May 2015
Posts: 249
Add some %variable to commands (one for all or different for each command) and use
Code:
/set -uN ...
If you specify the -uN switch, %var is unset after N seconds, assuming it is not set again by another script. If you specify a zero for N, the variable is unset when the script finishes. (c) mIRC help
So you can check if this %var expired so command may trigger again or not expired, so command halted.


Dont give a fish - teach to fish!

Link Copied to Clipboard