Robux Rain is a Discord bot that can automate payouts of ROBLOX's virtual currency, "Robux(R$)", using Discord's REST API and Roblox's API endpoints
If you fork this repo, run pip install -r requirements.txt
to install dependencies
If you want to invite Robux_Rain to your Discord server, click here!
/startrain
starts a giveaway and takes 5 inputs:
groupid
: ID of the ROBLOX group robux will be paid out from
cookie
: ROBLOX security cookie of the cmd invoker
time
: Giveaway duration in minutes (minimum .5)
amount
: Amount of robux to be given away (minimum 1)
window
: Duration to claim prize after giveaway ends in minutes (minimum 1)
/version
checks the current version of Robux Rain
- Once the
/startrain
command is invoked, the bot will authenticate the invoker's ROBLOX account using thecookie
and fetch the information for all the members in the group with respect to thegroupid
provided and parse them into a dictionary with {username:id} pairs. - The bot will then initialize an embed with a unix
time
stamp countdown to the end of the giveaway and the totalamount
robux in the pool . - At the end of the countdown, users who both reacted to the embed with the "💰" emoji and won robux will be sent a DM asking for a ROBLOX username.
- After recieving a username, the bot will check if the name is a valid match to the data from the inital API response, and populate a payload with the ROBLOX ID and the winnings for the corresponding username and Discord ID.
- Finally the bot sends a post request to process robux payout
Note that it is entirely possible for not all entrees to win; see that 25 entered in the first image, but only 22 won.
VERSION: v1.4 Alpha (Testing)
- Added window parameter