fastlinks 16 Posted May 2, 2019 Report Share Posted May 2, 2019 I am trying to split the defines into many .ubot files and use "include" function to load it to the main bot (to speed up ubot when coding), but i have just found that if i edit/add/update a define of the child .ubot file, and run "include", it will not update the define to the main bot unless restart ubot.It do not make sense to keep restarting ubot to get the update. Anyone have a workaround?I tried pash "Advance ubot" >> "run ubot code", but it cant read .ubot file directly, anyone know how to read .ubot file as a variable or convert it into text? Quote Link to post Share on other sites
Marani 80 Posted May 3, 2019 Report Share Posted May 3, 2019 Open the .ubot file with something like Winrar, depending on number of tabs (X), inside you will find 0.uscript (X.uscript), open it with a text editor like notepad. you will see the source code there. Quote Link to post Share on other sites
Marani 80 Posted May 3, 2019 Report Share Posted May 3, 2019 Inside Ubot: unzip file(file.ubot,"{$special folder("Desktop")}") set(#readFile,$read file("Desktop\\0.uscript"),"Global") 1 Quote Link to post Share on other sites
fastlinks 16 Posted May 4, 2019 Author Report Share Posted May 4, 2019 thanks bro. it worked 100% 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.