Jump to content
UBot Underground

How Can I Automatically Run A Bot


Recommended Posts

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?

Link to post
Share on other sites

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")
}
  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...