How can I do this?

I don’t want an entire code.

Hello, I was working at my game and I run into a problem, I want to make a discord bot. When robux are added to the group (I don’t know how to do this event) the bot will log into a roblox account (I don’t know how) then calculate how much is 90% of that robux to give it to a developer and 10% will remain in the group.

These are the things that I don’t know: How to do an event when the robux are added, How the bot to log into an account, How to give group founds.

I’m using JavaScript and I have a bit of knowledge in it.

Also, is axios a good idea?

2 Likes

You don’t need a discord bot for that. There is already a feature in Roblox to do that.

Just click on Add Payout Recipient, type down their name and click ok. Then you can set their percentage:

What is that feature? I don’t want to do it manually. I want to do it automatly.

@XxELECTROFUSIONxX I don’t want to give the % to a person, I want to do it only one time. without needing to modify it.

Why are you setting up bots?

There is already a recurring payment option, go to your group and add a person to receive a percentage of the group funds .

Edit :
Oh someone already beat me to it.

@TheTurtleMaster_2
For one-time payments :

2 Likes

It is automatic. You just have to set the developer’s percentage and it will automatically pay for them. No need for discord bots

I want to do it only one time, and by developer I mean a random person, not game developer.

@XxELECTROFUSIONxX (again) I want to do it automatic, I don’t want to do it manually. One-time Payout isn’t automatly and I need manually to give the robux. You got the idea but you only know the manually way.

This is why I want to do a bot, so I will not do it manually.

I don’t think you can set up a bot for this.

There is no option currently available for set payments, i.e of a fixed amount , automatically, but to pay a developer a fixed percentage automatically use the recurring payment option.

Also, there is no event to detect revenue being added to a group and there is also no way to spend revenue from a group on people through code.

Edit 2 :

@TheTurtleMaster_2

even if you’d be able to get some sort of event for this, which is impossible even through Http Service as roblox blocks requests to Roblox.com and the Roblox API , you can’t distribute funds through code at all.

A bot can log in account and can give people permissions in groups, I don’t think why it don’t let bots gave group founds.

Is there any way to see how much the group founds are? If yes I can do an event myself.

Only the owner of the group can give group funds, there is no permission you can give other people to pay group funds. But it is possible to give people permission to move members and give them different roles.

The bot will be the group owner, so it will can give group founds.

I don’t try to give robux from a script from roblox, I want to give robux from a discord bot. Discord bots/websites can do post/request to Roblox.com

You can’t get some sort of event for detecting funds, it is not possible AFAIK even through Http Service as Roblox blocks requests to Roblox.com and the Roblox API , the only work around is using a Proxy which I won’t suggest.

Many people says Proxy is good if you, also as I said I don’t work at a LUA script I work at a discord bot. The new question is, can you see how many group founds a group have? The bot is the owner, the group found are visible.

Noblox.js has a groupPayout function built in which allows a roblox bot to give a pay out. However, it can be risky to use this, as it’s not officially on the roblox API documentation.

Thanks! Noblox.js have a function to receive how many group founds are or when group found are added/removed?

Sadly, no. You’ll need to find a method on how to find an event for Group funds changed or a “Robux in group” property.

It haves atleast a function/propiety to see how many group founds a group haves?

As I just said; No, it doesn’t. You will have to find another source for this.

1 Like

Sad, but I will google more. (30chars)