Timers
Botloader does not provide a setTimeout
or setInterval
function that you may be familiar from the browser for reasons being it would keep your vm loaded while doing no work, effectively wasting resources. To get around this botloader provides the following:
- script.onInterval for executing a function on a interval. API
- Scheduled Tasks for scheduling something to be run at a specific time in the future.