Bealad00 3 Posted December 19, 2014 Report Share Posted December 19, 2014 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}\\") } 2 Quote Link to post Share on other sites
arunner26 51 Posted December 19, 2014 Report Share Posted December 19, 2014 Bealad00,Good idea, thanks. 1 Quote Link to post Share on other sites
Bealad00 3 Posted December 20, 2014 Author Report Share Posted December 20, 2014 @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 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.