Francesco149 / ojsama

pure javascript implementation of https://github.com/Francesco149/oppai-ng
The Unlicense
26 stars 7 forks source link

ppv2 is not a function? #18

Open AkinariHex opened 4 years ago

AkinariHex commented 4 years ago

I'm trying to implement your pp calculation with my discord bot and I'm retrieving information about beatmaps with my api. But while doing parser.ppv2() retrieve me that ppv2 is not a function.

ConEmu64_89cDOT50ae Code_-_Insiders_a091aUiMQ1

blobnom commented 4 years ago

Depending on your ojsama variable's name it's "variable name".ppv2 not parser.ppv2. Try that

For example:

const ojsama = require('ojsama');
ojsama.ppv2({
    //...
});