Handler for the Roblox API
Project description
PyBlox2
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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
PyBlox2-1.0.0-py3-none-any.whl
(26.7 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e42522e5c4feb3be3b44b2742ef426247e23d3b9d01230e276be772bd348cfe6
|
|
| MD5 |
9919496a7ec168928e7eeeeee7dd8161
|
|
| BLAKE2b-256 |
268ed75f627f2b8361815f4f18d66ed2868e6a70fe89e4902776487b7c2a3ee7
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4640aab3e10381e2655455e76950f96bb9514ff93e2aa755bcf539fe644eef76
|
|
| MD5 |
016a4bfcb2925100105f75c862afbf16
|
|
| BLAKE2b-256 |
aa78d327550071d4030065dc8b47e1ece52547e688d4bcfbb335d94635f9fe30
|