Skip to content

Commit

Permalink
almost done
Browse files Browse the repository at this point in the history
Signed-off-by: gemsvido <gemsvido@gmail.com>
  • Loading branch information
afkvido committed Apr 20, 2022
1 parent 7a771e2 commit 3c84371
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/util.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"use strict";

var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};

Object.defineProperty(exports, "__esModule", { value: true });
exports.getPatchedPublicGameFile = exports.getPatchedGameFile = exports.patchGameFile = exports.logtraffic = exports.getGameFile = exports.getGameStatus = void 0;
const node_fetch_1 = __importDefault(require("node-fetch"));
Expand Down Expand Up @@ -33,6 +35,9 @@ const getGameStatus = async () => {
return null;
}
};



exports.getGameStatus = getGameStatus;
setInterval(() => {
lastGameStatus = null;
Expand All @@ -51,9 +56,13 @@ const getGameFile = async (version) => {
throw new Error(`Could not fetch game file with version ${version}.\nReason: ${e}`);
}
};


exports.getGameFile = getGameFile;
const logtraffic = () => {
};


exports.logtraffic = logtraffic;
const patchGameFile = (str, version) => {
const variables = [str.match(/window,function\((.)/)[1], str.match(/var (.)={}/)[1]];
Expand Down

0 comments on commit 3c84371

Please sign in to comment.