You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importfetchfrom'node-fetch';import{ctb_ppv2}from'booba';constAPI_KEY='put api key here';// osu! api v1 keyconstUSER='4158549';(async()=>{constresponse=awaitfetch(`https://osu.ppy.sh/api/get_user_recent?k=${API_KEY}&u=${USER}&limit=1`);constjson=awaitresponse.json();const[score]=json;constpp=newctb_ppv2().setPerformance(score);console.log(awaitpp.compute())console.log(awaitpp.compute(true))// Both have the same output})();
To make it simpler in the example code I use api v1 but in my project I'm using api v2
Attachments:
The text was updated successfully, but these errors were encountered:
I have now added fc simulation to catch and taiko in 0.0.15, but it doesn't make much sense for mania since we can't know how much score the player would've gotten without messing up and mania pp is mostly based on score.
Example code:
To make it simpler in the example code I use api v1 but in my project I'm using api v2
Attachments:

The text was updated successfully, but these errors were encountered: