-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to apiv2 #231
Comments
i've noticed this too in my own bot, it seems that if a player only has played on lazer, it's not possible to acquire their best plays through apiv1. To fix this issue Tillerino must use apiv2. |
Oh no 😆 It was a matter of time before we move to v2. I guess I'll rename this issue, then. |
I recently added support for lazer scores to osutrack. Rather than do surgery on the horrible 10-year-old codebase, I created a little API proxy that handles doing the OAuth and stuff required by v2 and then exposing the hiscores in the old v1 format (as closely as possible): https://github.com/ameobea/osu-api-bridge Idk if it will be useful as-is to you, but I did reverse engineer their currently undocumented format for v2 hiscores. It's not too complicated, but there is some nuance about when to use legacy fields or not and stuff like that. You also have to set an As for real docs on the v2 score stuff, there isn't much but I've heard that it's planned after talking to other devs and seems to be being worked on: ppy/osu-web#11035 Anyway, I just wanted to share that info in case it might be helpful. I've gotten back into osu recently, inspired by working on osutrack again, and I'd love to see Tillerino bot pick up my new shiny lazer hiscores :) |
You had me at This looks amazing. You don't have the docker image pushed somewhere by chance? |
I just pushed it up here: I'm running it with this command:
The config file can be the same as the The main service listens on port 4510; 4511 is prometheus metrics. There's only one endpoint: GET It returns data as close to the format from https://osu.ppy.sh/api/get_user_best as I could get. As far as I've seen, everything matches except some 50/100/300/geki/etc. counts don't seem to exist in the same way, so those don't line up perfectly. Lmk if you want help getting it set up or running; feel free to ping me on Discord as well. I will say, though, that the core of this code really is quite minimal. I think there's a decent chance you'd be able to modify your bot's code to talk to the v2 API natively for hiscores without a ton of effort tbh |
I have 1.5k play count, but the bot tells me to play a few games and it keeps telling me this even after I've played a few times. How to solve this problem?
The text was updated successfully, but these errors were encountered: