Socket
Socket
Sign inDemoInstall

r6-discord

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    r6-discord

A r6stats.com API wrapper, with the idea of being used in Discord bots in mind.


Version published
Maintainers
1
Install size
478 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 04 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc