Skip to content

A Node.js application that gathers player statistics and ban information from Counter-Strike Global Offensive using the Steam API

License

Notifications You must be signed in to change notification settings

joacand/csgo-player-statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS:GO Player Statistics and Ban Information

Build Status

An application that gathers player statistics and ban information from Counter-Strike Global Offensive using the Steam API.

Note that this is not a module for the Steam API, it is a web application factored as a module.

Developed in Node.js

Installation

Clone the repo and do:

npm install [path]/csgo-player-stats

Usage

Instantiate

var cs = require('csgo-player-stats');

Then run setup with your API key. Set logInput to true if you want to log each input.

cs.setup({
  API : API-Key
  logInput : false
});

The player and ban information are fetched with the processSteamIds function. Use the callback function to recieve them.

Example:

cs.processSteamIds(variableWithSteamContents, function(playerStats, banStats) {
      res.render('csresults', { playerStats: playerStats, banStats: banStats });
    });

Screenshot

Here is an example of how it can look like. This setup is provided in examples/Jade-example. alt tag

About

A Node.js application that gathers player statistics and ban information from Counter-Strike Global Offensive using the Steam API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published