Jump to content
UBot Underground

Not Able To Paste Ubotcode Back Into Ubot (Bug?)


Recommended Posts

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()
}

post-37286-0-42075500-1546462139_thumb.png

Edited by unibotsi
Link to post
Share on other sites

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.

Link to post
Share on other sites

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.

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