unibotsi 7 Posted December 31, 2018 Report Share Posted December 31, 2018 (edited) Heya Almost everytime i paste a code back into ubot, i get the "please fix code" notification.This snippet i saved in an evernote and now tried to copy it back into ubot. It is always the first line which causes "problems".Very annoying, as i everytime have to rewrite the whole bot, which is now ore than hundred lines with the following example (just a part of the whole bot). If i delete the first command, the next command will throw the error. on load("Bot Loaded") { set(#botfolder,$folder exists("{$special folder("Desktop")}\\XngVisitor"),"Global") if(#botfolder) { then { if($file exists("{$special folder("Desktop")}\\XngVisitor\\tovisit.csv")) { then { add list to list(%ToVisitProfilUrls,$list from file("{$special folder("Desktop")}\\XngVisitor\\tovisit.csv"),"Delete","Global") } else { save to file("{$special folder("Desktop")}\\XngVisitor\\tovisit.csv",%ToVisitProfilUrls) } } if($file exists("{$special folder("Desktop")}\\XngVisitor\\visited.csv")) { then { add list to list(%VisitedProfilUrls,$list from file("{$special folder("Desktop")}\\XngVisitor\\visited.csv"),"Delete","Global") } else { save to file("{$special folder("Desktop")}\\XngVisitor\\visited.csv",%VisitedProfilUrls) } } if($file exists("{$special folder("Desktop")}\\XngVisitor\\settings.csv")) { then { create table from file("{$special folder("Desktop")}\\XngVisitor\\settings.csv",&Creds) set(#email,$table cell(&Creds,0,0),"Global") set(#pass,$decrypt($table cell(&Creds,1,0),"base64"),"Global") } else { save to file("{$special folder("Desktop")}\\XngVisitor\\settings.csv",&Creds) } } } else { create folder($special folder("Desktop"),"XngVisitor") save to file("{$special folder("Desktop")}\\XngVisitor\\tovisit.csv",%ToVisitProfilUrls) } } check login status() } Edited January 2, 2019 by unibotsi Quote Link to post Share on other sites
Varo 28 Posted January 1, 2019 Report Share Posted January 1, 2019 Your first set command is wrong.Use this. set(#LoginStatus,"Logging in","Global") Quote Link to post Share on other sites
unibotsi 7 Posted January 2, 2019 Author Report Share Posted January 2, 2019 (edited) Yeah, pasted the wrong snippet. I updated my first post with an actual code example. Edited January 2, 2019 by unibotsi Quote Link to post Share on other sites
Varo 28 Posted January 3, 2019 Report Share Posted January 3, 2019 Yeah, pasted the wrong snippet. I updated my first post with an actual code example.i'd tried your updated code, and its work fine. Copy paste on node view and code view, both work fine. Quote Link to post Share on other sites
unibotsi 7 Posted January 6, 2019 Author Report Share Posted January 6, 2019 Ok thats weird - why does it not work if i paste it? As you can see (screenshot) it marks the first/second line of code. If something is marked as "wrong" ubot does not let me switch to node view. 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.