Jump to content
UBot Underground

Ubot Code : Backup File On Every Run :)


Recommended Posts

Here a quick and simple ubot code that will backup your ubot file everytime you run your bot. Just add it to the top of your ubot code,

*Replace "BotName" with the .ubot filename.

loop(1) {
    set(#date,$date,"Global")
    set(#date,$replace(#date,":","-"),"Global")
    set(#date,$replace(#date,"/","-"),"Global")
    copy file("{$special folder("Application")}\\BotName.ubot","{$special folder("Application")}\\Backups\\{#date}\\")
}
  • Like 2
Link to post
Share on other sites

@arunner26 : i made this code a couple days ago when the ubot crashed right at the time when i pressed Ctrl+S so it saved a 0kb file and i lost 6hrs of my work.

also the ubot backup option didn't backed anything up :(

now every bot i create i add this little code to the begining, so now i have a multiple backups of my bots = this comes really handy :)

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...