Making an Auto-Rank System with Python

–Please stop replying to this, it’s solved.–

This may or may not be the right section, please redirect me if it is not.

I’ve looked through lots of places for finding out how to make group ranking systems with python. Specifically, I’ve looked at google and found things such as Pyblox, however it has NO documentation, and I doubt it has any ranking capabilities.

Is there anything I can use to rank people from a python script, from it being as simple as a library, to me having to make HTTP requests?

By the way, this is Pyblox that I was talking about. Please do tell me if there is actually ranking capabilities within it. Pyblox

Never used python, but you could try noblox.py or noblox.js, they provide a good documentation

There’s a python version of noblox? I’ve been looking for it, can’t find it.

Roblox.py
pyblox3
(though I’m not certain either of these support ranking, neither of them seem to have docs on setting, only getting)

Though I definitely recommend using JS and noblox.js

3 Likes

Ah, that’s roblox.py. Thanks for letting me know, I will look into it.

By the way, I don’t use node because it’s async things not really that easy for me to read/create.

If you would be willing to go over to noblox.js and JS as a whole then there are tutorials on how to make bots like that, It’s also fairly easy to understand from my point of view.

:slight_smile:

2 Likes

There’s examples of how to make those kinds of things with JS on the DevForum (though they more so spoonfeed than explain) however noblox is extremely simple

const noblox = require('noblox.js');
const express = require('express');
const app = express();

async function run() {
    await noblox.cookieLogin('_ROBLOXSECURITY KEY');
    let user = await noblox.getCurrentUser();
    app.get('/',(req,res) => { // when a request is made to the index.html webpage:
        let hdrs = req.headers; // you can store userid, role id etc in here assuming its a HTTP request
        let roleId = Number(hdrs.roleId);
        let groupId = Number(hdrs.groupId);
        let userId = Number(hdrs.groupId);
       
       noblox.setRank({ group: groupId, target: userId, rank: roleId})
       .then(s => {console.log('success')})
       .catch(err => throw err);
    });
}

run();

Then use HttpService:RequestAsync() to set headers.

Small example with node.js w/ express and noblox.js just in case you can’t find a Python version supporting ranking.

(I typed this entire thing here so something might be wrong but pretty sure there isn’t, if you wanna use JS you can always use Glitch which gives you 4k requests/hour so be careful not to exceed that unless you buy their Premium option)

2 Likes

Thanks, will keep tabs on that.

1 Like

Yeah, this is mainly the kind of things I do, you can also make Promote, Demote, Setrank commands using the Roblox API.

@DeterminedFirel11, If you were going to use JS and noblox.js, there’s a certain github repo that you could use to help you make it.

It’s by @yogurtsyum on Github. They made a free to use unbranded, opensourced discord-roblox ranking bot.

I’ll link below just in case! :smile:

6 Likes

Interesting thread. I just so happen to be the author of Pyblox.

I find it rather concerning that people expect things to be willingly handed to them at little to no cost, plugged in, and then used freely without any worry in the world. To me, that’s not the point of this library nor what programming actually entails. This may not be specifically you but, it builds onto the reason as to why I didn’t provide classic documentation.

Providing documentation is a lot of work. The Roblox API changes so frequently that I’d be spending more time updating the documentation that people may never look at (refer to the statement above) and frankly, I find that to be a waste of resources. The library is modeled directly after the API of which it belongs to and follows their scheme. This allows me to leverage off of their documentation without having to update it on my end.

In addition, people oftentimes put code into their projects without knowing what exactly they’re putting in. I specifically wrote this library for people to dive into its source code and explore what the library has to offer. I even wrote it into the readme.

Here’s a sample of what the inside of this particular file looks like & the format that all methods follow:

Here’s what you’re looking for:

Hope this helps and/or gives you a better understanding as to why I made the choices I did and the thought process behind them. Sorry for the bump.

2 Likes

Is there any actual documentation for Pyblox, like the discord.py documentation?

1 Like

Read the post above. Short Answer: No.

1 Like

Qbot is JavaScript.
But we need a python Ranking System.

2 Likes