hmes98318 / r6s-stats-api Goto Github PK
View Code? Open in Web Editor NEWAn api for fetching player statistics from Rainbow Six Siege
Home Page: https://www.npmjs.com/package/r6s-stats-api
License: MIT License
An api for fetching player statistics from Rainbow Six Siege
Home Page: https://www.npmjs.com/package/r6s-stats-api
License: MIT License
Hello! I have an error that I always get and cant solve. The error is that when I call any API callbacks I only get ex.: rank TIME_OUT and then the program stops. Anyway to solve this issue?
code:
`const R6 = require('r6s-stats-api');
let platform = 'PC';
let name = 'Kek_Orbit';
async function main() {
let rank = await R6.rank(platform, name);
console.log('rank', rank);
}
main();`
Hello hmes!! I love the work you did, I have a question im new into all of this of discord bots, Im a mechatronic engineer. I was wondering if there's any way to give a user on discord their R6 Rank as a Role on the server after they submit their username, i would really appreciate if you could help me out with this
Would be really nice if we could get stats from a specific season or the current season instead of overall
{
url: 'https://r6.tracker.network/profile/pc/MP7/',
name: 'MP7',
header: 'https://ubisoft-avatars.akamaized.net/f037a5a4-4f59-49d2-9d98-18e11d213c61/default_256_256.png',
kd: 'Y7S2: Vector Glare',
kills: '2,465',
deaths: '1,846',
win_: '80.15',
wins: '416',
losses: '102',
time_played: 'Y7S2: Vector Glare',
matches: 'Y7S2: Vector Glare',
kills_match: 'Y7S2: Vector Glare',
kills_min: 'Y7S2: Vector Glare',
mmr: '1,336',
rank: 'COPPER III',
rank_img: 'https://imgur.com/w4Zdkc4.png'
}
Some casual stats lead to incorrect data such as time_played
and matches
For some reason any input passed to R6.general() returns a NOT_FOUND
error, even with the example provided on npm
The method operator() doesn't work.
Throw this error:
let operator = await R6.operator(plataform, name, "ZOFIA") console.log("OPERATOR STATS") console.log(operator)
OUTPUT:
OPERATOR_ERROR
Needed for all commits to have the same coding style.
Will do a PR shortly.
Using curl
may be causing this module to work incorrectly in docker on linux
,
hopefully this addition would fix it.
Also expect a PR
soon.
Im a bit confused on how you get a specific thing like I just want my rank to show but when I try to add it to
let ranked = await R6.rank(platform, name, rank)
console.log('Ranked', ranked)
I just get an error that says
let ranked = await R6.rank(platform, name, rank)
^
ReferenceError: rank is not defined
Also please update this for the new Ranked 2.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.