sleep
Sleep a certain amount of seconds.
###
commands:
- type: sleep
seconds: 60
- min_sec
This option defines the minimum seconds to sleep. This is only relevant if option random is set to True
- Type:
int
- Default:
0
- seconds
This options sets the seconds to sleep. If the option random is set to True, this option is the maximum time to sleep.
- Type:
int
- Default:
1
- Required:
True
- random
This option allows to randomize the seconds to wait. The minimum and maximum seconds for the range can be set by min_sec and seconds.
- Type:
bool
- Default:
False
The following example will take a random amount of seconds between 30 seconds and 60 seconds:
### commands: - type: sleep seconds: 60 min_sec: 30
- cmd
This option is ignored
- Type:
str
- Default:
sleep