View on GitHub

HLTV Scorebot

Node.js and Browser implementation of the HLTV.ORG-Scorebot.

download .ZIPdownload .TGZ

Getting started

Get the module with the npm:

npm install hltv-scorebot

Install manually:

  1. Download the latest build of the module at Releases.
  2. Extract the package and copy it to your projects node_modules-folder
  3. Rename the module-folder (e.g. hltv-scorebot-0.1.4) to hltv-scorebot
  4. Execute your console in the module-folder (hltv-scorebot)
  5. Execute npm install (This should download and install all dependencies [currently only socket.io-client@1.3.5. Check out package.json])

Using HLTV-Scorebot:

var Scorebot = require('hltv-scorebot');

var sb = new Scorebot();
    sb.connect('http://scorebot.hltv.org', 10023, 36747)  // Match 36747 was CLG vs eBettle at ESL One Cologne 2015
                                                          // Check out the helper-branch for example data
    sb.on('kill', function(killer, victim, weapon, headshot, assister) {

        var killerName = killer.name;

        // Checking if assister exists
        if(assister)
            killerName = killer.name + " and " + assister.name;  

        console.log(killer.name, 'killed', vicitim.name, 'with', weapon, headshot ? 'headshot' : '');
    });

Constants

Methods

Classes

Known Bugs

Examples

To be done

(Try the examples Folder at the hltv-scorebot repository)


I'm sorry for my poor English. If you have some problems understanding the module, the README or my documentation please mail me (nilsmargotti [at] gmail [dot] com).

Every Feedback is welcome.

Nils 'Nols1000' Margotti