Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/joshuaferrara/master'
Browse files Browse the repository at this point in the history
Step7750 committed Jan 29, 2017
2 parents d860047 + 2f784fc commit c09e578
Showing 5 changed files with 18 additions and 11 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ Based on [node-dota2](https://github.com/RJacksonm1/node-dota2) by [RJacksonm1](
* [Claimony](http://www.claimony.com/) - Get rewarded for gaming
* [CSGOSquad](http://csgosquad.com) - Live MM game search and statistics
* [CS:GO Stats](https://csgostats.gg/) - Detailed insights and statistics for competitive CS:GO
* [CSGO:STATRACK](http://www.csgostattrack.com/) - Insights and statistics for competitive CS:GO
* [CS:GORecords](https://csgorecords.com/) - Track the history of your CS:GO stats!
* [CSGO-Mates](http://www.csgo-mates.com/) - Live matchmaking search and player insights

> This list is getting too long. Wanna be on it? Message me on Gitter and we'll talk. - joshuaferrara
@@ -176,6 +176,9 @@ Emitted when the GC is ready to receive messages. Be careful not to declare ano
### `unready`
Emitted when the connection status to the GC changes, and renders the library unavailable to interact. You should clear any event handlers set in the `ready` event here, otherwise you'll have multiple handlers for each message every time a new `ready` event is sent.

### `exited`
Emitted when `.exit()` is called as a convenience for clearing handlers upon intentional exits.

### `itemData` (`itemDataResponse`)

```javascript
4 changes: 2 additions & 2 deletions helpers/sharecode.js
Original file line number Diff line number Diff line change
@@ -68,11 +68,11 @@ class SharecodeDecoder {

get decoded_code() {
var self = this;
var result = Array.apply(null, new Array(18)).map(Number.prototype.valueOf, 0);
var result = new Array(18).fill(0);
var reversed = this.code.split('').reverse();
reversed.forEach(function(char, index) {
var addval = self.DICTIONARY.indexOf(char);
var tmp = Array.apply(null, new Array(18)).map(Number.prototype.valueOf, 0);
var tmp = new Array(18).fill(0);
var carry = 0;
var v = 0;
for(var t = 17; t >= 0; t--) {
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -114,6 +114,9 @@ CSGOClient.prototype.exit = function() {
this._user.gamesPlayed({
games_played: [{}]
});

/* let everyone know we've exited */
this.emit("exited");
};


6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "csgo",
"version": "1.3.1",
"version": "1.5.2",
"dependencies": {
"protobufjs": "*",
"deferred": "*",
"protobufjs": "^5.0.1",
"deferred": "^0.7.5",
"bignumber.js": "^2.0.7",
"bytebuffer": ">=3.5.5"
},
11 changes: 6 additions & 5 deletions protoUpdate.js
Original file line number Diff line number Diff line change
@@ -4,10 +4,11 @@ var url = require("url");
var path = require("path");

var protos = [
"https://raw.githubusercontent.com/SteamDatabase/GameTracking/master/Protobufs/csgo/base_gcmessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking/master/Protobufs/csgo/cstrike15_gcmessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking/master/Protobufs/csgo/gcsdk_gcmessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking/master/Protobufs/csgo/steammessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/Protobufs/base_gcmessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/Protobufs/cstrike15_gcmessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/Protobufs/engine_gcmessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/Protobufs/gcsdk_gcmessages.proto",
"https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/Protobufs/steammessages.proto",
"https://raw.githubusercontent.com/SteamRE/SteamKit/master/Resources/Protobufs/steamclient/steammessages_clientserver.proto",
"https://raw.githubusercontent.com/SteamRE/SteamKit/master/Resources/Protobufs/steamclient/steammessages_clientserver_2.proto",
"https://raw.githubusercontent.com/SteamRE/SteamKit/master/Resources/Protobufs/steamclient/steammessages_base.proto",
@@ -38,4 +39,4 @@ protos.forEach(function(url) {
download(url);
});

console.log("Update complete!");
console.log("Update complete!");

0 comments on commit c09e578

Please sign in to comment.