1.0.2 • Published 4 years ago

game-tracker v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

game-tracker

Fortnite, CSGO, Apex Legends, Overwatch, Hyper Scape tracker. \ 197 lines of code, 1 dependency

Installation

Current stable version: 1.0

$ npm install game-tracker

Usage

const GameTracker = require('game-tracker');
const stats = new GameTracker('your_key'); // Tracker Network key

async function getStats() {
    await stats.function('your_platform', 'your_nickname'); // returns JSON
};

Example:

const GameTracker = require('game-tracker');
const stats = new GameTracker('your_key');

const prefix = '!';

client.on('message', async (message) => {
    if (message.content.startsWith(`${prefix}fortnite`)) {
        let msg = message.content.slice(10).split(', ');
        const fortniteStats = await stats.fortnite(msg[0], msg[1]);
        message.channel.send('Wins: ' + fortniteStats.stats.life_time[8].value);
    };
});

Games

Fortnite

function - fortnite(platform, nickname) \ platforms - kbm + gamepad + touch

CSGO

function - csgo(platform, nickname) \ platform - steam

CSGO Segments

function - csgoSegments(platform, nickname, segment) \ platform - steam \ segments - map + weapon

Apex Legends

function - apexLegends(platform, nickname) \ platforms - origin + xbl + psn

Apex Legends Segments

function - apexLegendsSegments(platform, nickname, segment) \ platforms - origin + xbl + psn \ segment - legend

Overwatch

function - overwatch(platform, nickname) \ platforms - battlenet + xbl + psn

Hyper Scape

function - hyperScape(platform, nickname) \ platforms - uplay + xbl + psn