jakeG 0 Posted November 9, 2016 Report Share Posted November 9, 2016 I am new to ubot and would like to create a bot that runs when something happens from outside the program. For example, I want to have a bot run every time photos are added to a certain dropbox folder. Is this possible to do? Quote Link to post Share on other sites
pash 504 Posted November 9, 2016 Report Share Posted November 9, 2016 You have to work all the time Ubot and detects changes in the file.If you want to hide your Ubot require plugins. sample loop while($true) { clear list(%FilesNew) add list to list(%FilesNew,$get files($special folder("Desktop"),"Yes"),"Delete","Global") if($both($comparison($list total(%FilesOld),"> Greater than",0),$comparison($list total(%FilesNew),"> Greater than",$list total(%FilesOld)))) { then { alert("You add new file") } else if($both($comparison($list total(%FilesOld),"> Greater than",0),$comparison($list total(%FilesNew),"< Less than",$list total(%FilesOld)))) { alert("You remove file") } else { } } wait(1) clear list(%FilesOld) add list to list(%FilesOld,%FilesNew,"Delete","Global") } 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.