Skip to main content

Unofficial Client for RocketBotRoyale Game API

Downloads

⚠️️ For Educational Use Only!

This is an unofficial Python client for the Rocket Bot Royale game API. It allows users to interact with the game API, including authenticating, retrieving account details, collecting timed bonuses, sending friend requests, and purchasing crates.

Installation

Install the package using pip:

pip install -U rbrapi

Usage

Initialization

Initialize a RocketBotRoyale instance with an email and password:

from rbrapi import RocketBotRoyale
from rbrapi.errors import AuthenticationError

# Initialize with email and password
client = RocketBotRoyale(email="email@example.com", password="your_password")

Authentication

Authenticate with the RocketBotRoyale API using provided credentials:

Note: It auto-authenticates when RocketBotRoyale is initialized. Use this only for regenerating the session token.

try:
    client.authenticate()
    print("Authentication successful!")
except AuthenticationError as e:
    print(f"Authentication failed: {e}")

Account Details

Retrieve account details:

try:
    account_details = client.account()
    print(f"Account ID: {account_details.custom_id}")
    print(f"Username: {account_details.user["username"]}")
    print(f"Gems: {account_details.wallet["gems"]}")
    print(f"Coins: {account_details.wallet["coins"]}")
except AuthenticationError as e:
    print(f"Authentication failed: {e}")

Collect Timed Bonus

Collect a timed bonus:

from rbrapi.errors import CollectTimedBonusError

try:
    success = client.collect_timed_bonus()
    if success:
        print("Timed bonus collected successfully!")
    else:
        print("Failed to collect timed bonus.")
except AuthenticationError as e:
    print(f"Authentication failed: {e}")
except CollectTimedBonusError as e:
    print(f"Failed to collect timed bonus: {e}")

Send Friend Request

Send a friend request to another user:

from rbrapi.errors import FriendRequestError

friend_code = "c2829d50"

try:
    success = client.send_friend_request(friend_code)
    if success:
        print("Friend request sent successfully!")
    else:
        print("Failed to send friend request.")
except AuthenticationError as e:
    print(f"Authentication failed: {e}")
except FriendRequestError as e:
    print(f"Failed to send friend request: {e}")

Convert Friend Code to User ID

Convert a friend's code to their user ID:

from rbrapi.errors import AuthenticationError, userNotExistError

friend_code = "c2829d50"

try:
    user_id = client.friend_code_to_id(friend_code)
    print(f"User ID: {user_id}")
except AuthenticationError as e:
    print(f"Authentication failed: {e}")
except userNotExistError as e:
    print(f"User does not exist: {e}")

Purchase Crate

Purchase a crate (regular or elite):

from rbrapi.errors import LootBoxError

try:
    crate_details = client.buy_crate(elite=False)  # Set elite=True for elite crate
    print("Crate purchased successfully!")
    print(f"Crate details: {crate_details}")
except AuthenticationError as e:
    print(f"Authentication failed: {e}")
except LootBoxError as e:
    print(f"Failed to purchase crate: {e}")

Sign Up New User

Make a new account with the RocketBotRoyale API:

from rbrapi.errors import SignUpError

email = "new_user@example.com"
password = "new_password"
username = "new_username"

try:
    success = RocketBotRoyale.signup(email, password, username)
    if success:
        print(f"User {username} signed up successfully!")
    else:
        print("Failed to sign up user.")
except SignUpError as e:
    print(f"Failed to sign up user: {e}")

Metadata

Release files for rbrapi 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rbrapi 0.7
File Size Uploaded
rbrapi-0.7.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rbrapi 0.7
File Interpreter ABI Platform
rbrapi-0.7-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / rbrapi-0.7.tar.gz

Download URL rbrapi-0.7.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
230b4851f7e3af718a2e59f2a300ac7fba91dd8ca9d8c45558ab851bbf7a135f
BLAKE2b-256 checksum
How to use checksums
ca334223cac2ceddc4fd922fe080b0e1afe530b292a6c3dd608f981ee3137c9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / rbrapi-0.7-py3-none-any.whl

Download URL rbrapi-0.7-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9719e91404bd62d2e9d75730d73c220741ef704cf2532255720d4c2e40278a73
BLAKE2b-256 checksum
How to use checksums
06a36f4a8b7e3b7befd480cc729270d70bec659cf028e64b29e391ea6e673081
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.7 This release

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page