Issue with my group rank bot

Wouldn’t it be await rbx.setCookie(cookie);? Because what you provided gives an error on the “noblox” word.

yes, sorry. That is right. I glanced too fast

setCookie appears to be working for me, so I assume you will have no issue. I created an account and used it’s new cookie and it sent me a friend request.

const noblox = require("noblox.js")

const cookie = "my super long and cool cookie"

async function start() {
    await noblox.setCookie(cookie)

    const delivered = await noblox.sendFriendRequest(39939779)
    console.log(delivered)
}

start()

Yes, it works - however the bot refuses to rank the user.
Can I be logged in while this happens? (I am currently on the bot account trying to rank a group member in-game).

I see no errors, but the user’s rank won’t change.

Should be no issue if you’re logged in.

Try passing an object like the example does.

rbx.setRank({group: groupId, target: parseInt(User), rank: parseInt(Rank)})

Also it says it returns a promise? Try seeing what the promise resolves.
rbx.setRank({group: groupId, target: parseInt(User), rank: parseInt(Rank)}).then((response) => console.log(response))

I’m not too familiar with express or noblox though.

I recommend you use Version 2 of the Ranking System

Everything is here

1 Like

I’ll just paste some useless stuff because roblox moderation is at its worst.
My question is: What is the difference?

Doesn’t log anything, everything seems broken and refuse to run.
I can’t really tell what the issue is either because this is my first time messing with it.

Do not always use code from the web. Make your own for the experience/knowledge as well as to prevent bugs. If I was you, I would look at the documentation found here:

GitHub documentation found in description
All functions and recipes on the official page

const rbx = require('noblox.js');
async function StartApp() {
    await rbx.SetCookie("");
    let user = await rbx.getCurrentUser()
}
StartApp();

That is a basic part of code found in the GitHub page. Build on there using express.js (a way to communicate between programs).

I am not looking for the experience, I have that part in lua already.

This is only a test.

(Regardless, doesn’t work so I’m done here.)

I mean you should not give up.

I’m not, the only issue I currently have doesn’t even make sense.

Look at my post before. That code works, though do insert your cookie WITH the warning part at the start

Try getting a new cookie. By the way, do not log out, only close your browser.

I kinda need to log out though, I have a main account I’d rather be on.

.SetCookie is not a function, setCookie is though…

Yeah well spot. My advice is to use TWO browsers. One main and one for bots.

You need to use an incognito window.

I used Microsoft Edge, it’s still online, I just closed the browser.