Discord bot which ranks users based on their group rank

Currently making a discord bot and would like to have a feature which gives users roles based on their group rank. All I need help with is the link between roblox and discord - how would I give the bot access to find users’ group ranks?

I would rather have my own bot than use Bloxlink or RoVerify (examples) . I’ve tried searching but wasn’t really succesful in finding a tutorial just on this.

Any help to point me in the right direction would be appreciated.

1 Like

This would require the use of the Discord API, more specifically you would need to learn the discord.js library and I would recommend using the noblox.js library. If you need any help I can message you some discord servers that could help you out. :smile:

I’d also recommend you take a look at qbot, an open-sourced Discord-Roblox bot, as it could help you understand what steps you need to take.

2 Likes

Adding on to that, if you wanted it to be 24/7, I suggest you find a VPS for hosting your bot on, as hosting locally can cause lag and other issues.

1 Like

hey! so you could prompt the user for their username, and take that and convert it to an id. you can then use the player’s id to check their role in the group. you can use the group role to decide which rank to add.

if you want more info/help, feel free to DM me!

1 Like

some good links to check out:

https://noblox.js.org/global.html#getRankInGroup
https://noblox.js.org/global.html#getIdFromUsername

2 Likes