Giter Club home page Giter Club logo

Comments (9)

andrewda avatar andrewda commented on June 15, 2024

Could you print out your data object? HLTV may have changed up their responses, in which case I'll update the README with the appropriate responses.

from hltv-livescore.

techdsg avatar techdsg commented on June 15, 2024

I can print other elements like roundEnd, kill, roundStart, but no idea about score.

from hltv-livescore.

andrewda avatar andrewda commented on June 15, 2024

If you just print the data object, though, what shows up?

from hltv-livescore.

techdsg avatar techdsg commented on June 15, 2024

I tried

sb.on('score', function(data) {
    console.log('data:', data);
});

but nothing. when is the score triggered? And any ideas how to get the whole data (kills,bombplantings, scores) ?

from hltv-livescore.

andrewda avatar andrewda commented on June 15, 2024

It should be triggered after every round end. I'll see if HLTV changed anything.

from hltv-livescore.

techdsg avatar techdsg commented on June 15, 2024

Thanks, would be very helpful.

from hltv-livescore.

andrewda avatar andrewda commented on June 15, 2024

It seems that the score event is not used anymore, and now scoreboard is emitted solely. I will probably remove the score event as I want this to be a wrapper for HLTV, so I would suggest using the scoreboard event. I will also add a getScore() method so that the score can be easily retrieved.

from hltv-livescore.

colealanroberts-zz avatar colealanroberts-zz commented on June 15, 2024

Any update on this?

from hltv-livescore.

andrewda avatar andrewda commented on June 15, 2024

@colealanroberts I actually just finished testing it out today - will push the code.

Edit: please test out the recent changes and tell me how they're working for you.

from hltv-livescore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.