Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Is there a way to sleep until specific time? Example schedule a task or a function to run at midnight every day.
Heres a function that returns how many milliseconds to midnight, so it will sleep to midnight, you can then add in what to do at midnight
https://pastebin.com/raw/pjcWHpbj
@caplaz You can also use BAS command line interface with any scheduler. https://wiki.bablosoft.com/doku.php?id=how_to_schedule_bas_script
@oyasumi-punpun
Thank you for your detailed answer. Very appreciated.
I'm curious about the new BAS scheduler.
Would be awesome to know if anyone else is running into these issues or is using capmonster successfully ^^