r6-discord
A r6stats.com API wrapper, with the idea of being used in Discord bots in mind.
Last updated 10 months ago by ognovuh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install r6-discord 
SYNC missed versions from official npm registry.

R6 Discord

Async JavaScript wrapper for r6stats.com.

Example

const R6Api = require('r6-discord');
const R6 = new R6Api();

const username = args[0];
const platform = args[1];

// Get stats on a user on that platform.
R6.stats(username, platform, /* Optional Boolean if you want operator stats. */).then(response => {
  console.log(response);
}).catch(error => {
  console.error(error);
});

// Get details on a user on R6 depending on platform.
R6.profile(username, platform).then(response => {
    console.log(response);
}).catch(error => {
    console.error(error);
});

Installation

npm i r6-discord

Using https://r6stats.com for the API and stats.

Current Tags

  • 1.2.1                                ...           latest (10 months ago)

4 Versions

  • 1.2.1                                ...           10 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.0                                ...           a year ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |