Command-fix/src/state.js
James b914780a65 Add game DB lookup support (#32)
* Add game DB lookup support

* Fix compatibility typo

* Fix typo 2

* Use async function in game DB listing, avoid redundant HTTP requests
2018-06-06 22:54:28 -04:00

20 lines
361 B
JavaScript

/* Application State */
var State = function () {
this.guild = null;
this.logChannel = null;
this.warnings = [];
this.responses = null;
this.bans = [];
this.stats = {
joins: 0,
ruleAccepts: 0,
leaves: 0,
warnings: 0
};
this.lastGameDBUpdate = 0;
this.gameDB = [];
this.gameDBPromise = null;
};
module.exports = new State();