Skip to content

💎 Retrieve CS:GO float values in JavaScript

Notifications You must be signed in to change notification settings

Nghi93/csgo-float

This branch is 1 commit ahead of, 15 commits behind balthazar/csgo-float:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Khang Nghi Lam
Feb 12, 2016
ce3232c · Feb 12, 2016

History

10 Commits
Jan 7, 2016
Feb 12, 2016
Jan 7, 2016
Jan 7, 2016
Jan 14, 2016
Jan 7, 2016
Jan 7, 2016

Repository files navigation

csgo-float

Retrieve CS:GO float values in JavaScript

npm i -S csgo-float

Usage

Only one request can be done at a time by each client. You'll have to wait for the first request to be processed before sending another one.

Client
new FloatClient(clientAuth, debug)

clientAuth {Object} SteamUser credentials to login

debug {Boolean} Print some useful informations

const client = new FloatClient({
  account_name: 'yeah',
  password: 'this-is',
  auth_code: 'definitely',
  sha_sentryfile: 'right'
}, true)
Methods
client.requestFloat(url)

Returns a Promise.

Where url is a string formatted like S76561198190349706A4757476613D16467978012840927110.

client.requestFloat('S76561198190349706A4757476613D16467978012840927110')
  .then(floatValue => {
    console.log(floatValue)
  })
  .catch(err => {
    console.log(err)
  })
Events

ready Emitted once the client is ready to receive float requests

sentry The user is authenticated and the account sentry is sent, should be saved somewhere

error Once an error is triggered

Thanks

This would not exists without the help of @Twewki.

About

💎 Retrieve CS:GO float values in JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%