I would like to know if the following example is possible, and if so, how it can be implemented.
E.g. the bot should check a folder for a file. If not found, it must go to sleep for 60 seconds and comeback to check the folder after 60 seconds. If found, process the file and go to sleep for 60 seconds and wake up to check if there are any new files inside the folder.
Basically, the bot process never stops as an end of process. Once I start it, unless I go and explicitly stop it, it must do this sleep and wake up process again and again.