iranathan / robloxapi

A python module for using the roblox api
MIT License
33 stars 13 forks source link

[Feature Request] Group Payout Support #24

Closed Masken8 closed 4 years ago

iranathan commented 4 years ago

Hello, I have added this.

import robloxapi, asyncio
client = robloxapi.Client("COOKIE")

async def main():
    group = await client.get_group(groupid)

    # example 1
    await group.pay(1, 1000)  # pays roblox 1000 robux

    # example 2
    user = await client.get_user(name='iranathan')
    await group.pay(user.id, 1000)  # pays me 1000 robux

asyncio.run(main())
Masken8 commented 4 years ago

The example code you provided gives me RuntimeError: Event loop is closed

iranathan commented 4 years ago

I can't reproduce this error. Have you updated the library with pip install git+https://github.com/iranathan/robloxapi.git -U?

Masken8 commented 4 years ago

Updated it, still getting the same error