andrewda/hltv-live-games

How do I actually use this to fetch a matchID?

Closed this issue · 2 comments

Could you show me an example of how to fetch the ID?

You should listen for the newGame event.

var Live = require('hltv-live-games');
var live = new Live();

live.on('newGame', function(data) {
    console.log(data);
});

Not at my computer right now, but that should be all you need.

thanks :D