Pause » History » Version 4
Per Amundsen, 02/05/2023 10:28 PM
1 | 1 | Per Amundsen | _Added in 2.9_ |
---|---|---|---|
2 | |||
3 | 3 | Per Amundsen | */pause [-m] <N>* |
4 | 1 | Per Amundsen | |
5 | Pauses the script for N seconds. |
||
6 | |||
7 | _The internal state cannot be guaranteed so use with caution._ |
||
8 | 3 | Per Amundsen | |
9 | *Switches* |
||
10 | |||
11 | 4 | Per Amundsen | -m - Indicates N is milliseconds instead. |
12 | 1 | Per Amundsen | |
13 | *Parameters* |
||
14 | |||
15 | <N> - The number of seconds to pause for. |
||
16 | |||
17 | *Example* |
||
18 | |||
19 | <pre> |
||
20 | alias changetopic { |
||
21 | echo -ag Topic before = $chan(#).topic |
||
22 | topic # New topic |
||
23 | pause 3 |
||
24 | 2 | Per Amundsen | echo -ag Topic after = $chan(#).topic |
25 | 1 | Per Amundsen | } |
26 | </pre> |