Giter VIP home page Giter VIP logo

osu.py's Introduction

Specialized in realtime 3D simulation and rendering. Discord enthusiast and Python lover.
Currently working on a fully asynchronous Vulkan based data oriented game engine.


osu.py's People

Contributors

obayemi avatar renondedju avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

osu.py's Issues

Events?

Could there be a way to make events, for example when a user joins osu! or when a play is submitted

Error when getting user

Describe the bug
An error is raised when trying to get the user using Python 3.10

Error report

Traceback (most recent call last):
  File "C:\Users\Admin\.virtualenvs\twitchbot-ckDLcYWF\lib\site-packages\twitchio\client.py", line 193, in wrapped
    await func(*args)
  File "C:\Users\Admin\Documents\twitchbot\bot.py", line 19, in event_ready
    self.too_md = await self.api.get_user("too_md")
  File "C:\Users\Admin\.virtualenvs\twitchbot-ckDLcYWF\lib\site-packages\pyosu\api.py", line 168, in get_user
    return User(user_events=[UserEvent(**event) for event in data.get('events', [])], **data, api=self)
  File "C:\Users\Admin\.virtualenvs\twitchbot-ckDLcYWF\lib\site-packages\pyosu\api.py", line 168, in <listcomp>
    return User(user_events=[UserEvent(**event) for event in data.get('events', [])], **data, api=self)
  File "C:\Users\Admin\.virtualenvs\twitchbot-ckDLcYWF\lib\site-packages\pyosu\models\user_event.py", line 35, in __init__
    self.beatmap_id	    = int(data.get('beatmap_id'	  , 0 ))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

To Reproduce
Steps to reproduce the behavior:

  1. Create OsuApi in Python 3.10
  2. Await api.get_user("some user")

Expected behavior
The Api would return the User Struct

Python version
Python 3.10.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.