Skip to main content

Handler for the Roblox API

Project description

PyBlox2

MIT License Version
High level library for making Roblox bots in Python

Examples

A Basic Example

import PyBlox2

client = PyBlox2.BloxClient()

@client.event
async def ready(ctx):
    await client.fetch("friend_requests")
    player = client.friend_requests[0]
    await player.fetch("friends")

    (player.friends[0])

@client.event
async def request(ctx):
    print("Received status code ", ctx[0].status)

client.run(ROBLOSECURITY) # ROBLOSECURITY COOKIE

Changing someone's role

import PyBlox2

client = PyBlox2.BloxClient()

@client.event
async def ready(ctx):
    group = await client.get_group(5029105)
    member = await group.get_member("fego2015")
    role = await group.get_role("Moderators")
    await member.set_role(role)

@client.event
async def request(ctx):

    ("Received status code ", ctx[0].status)

client.run(ROBLOSECURITY) # ROBLOSECURITY COOKIE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyBlox2-1.0.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyBlox2-1.0.0-py3-none-any.whl (26.7 kB view details)

Uploaded Python 3

File details

Details for the file PyBlox2-1.0.0.tar.gz.

File metadata

  • Download URL: PyBlox2-1.0.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for PyBlox2-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e42522e5c4feb3be3b44b2742ef426247e23d3b9d01230e276be772bd348cfe6
MD5 9919496a7ec168928e7eeeeee7dd8161
BLAKE2b-256 268ed75f627f2b8361815f4f18d66ed2868e6a70fe89e4902776487b7c2a3ee7

See more details on using hashes here.

File details

Details for the file PyBlox2-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyBlox2-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 26.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for PyBlox2-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4640aab3e10381e2655455e76950f96bb9514ff93e2aa755bcf539fe644eef76
MD5 016a4bfcb2925100105f75c862afbf16
BLAKE2b-256 aa78d327550071d4030065dc8b47e1ece52547e688d4bcfbb335d94635f9fe30

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page