Pause » History » Version 3
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 | -m - Indicates N is milliseconds. |
||
| 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> |