Added in 2.9

/pause [-m] <N>

Pauses the script for N seconds.

The internal state cannot be guaranteed so use with caution.

Switches

Switch Description
-m Indicates N is milliseconds instead.

Parameters

Parameter Description
<N> The number of seconds to pause for.

Example

alias changetopic {
  echo -ag Topic before = $chan(#).topic
  topic # New topic
  pause 3
  echo -ag Topic after = $chan(#).topic
}