2016-12-08 03:52:37 +00:00
|
|
|
/* Application State */
|
2017-10-05 02:21:36 +00:00
|
|
|
var State = function () {
|
2017-09-29 23:38:00 +00:00
|
|
|
this.guild = null;
|
|
|
|
this.logChannel = null;
|
2018-04-03 23:28:33 +00:00
|
|
|
this.warnings = [];
|
2018-01-20 04:29:33 +00:00
|
|
|
this.responses = null;
|
2018-04-03 23:28:33 +00:00
|
|
|
this.bans = [];
|
2017-09-29 23:38:00 +00:00
|
|
|
this.stats = {
|
|
|
|
joins: 0,
|
2018-02-28 00:19:14 +00:00
|
|
|
ruleAccepts: 0,
|
2018-04-03 23:28:33 +00:00
|
|
|
leaves: 0,
|
|
|
|
warnings: 0
|
2017-09-29 23:38:00 +00:00
|
|
|
};
|
2018-06-07 02:54:28 +00:00
|
|
|
this.lastGameDBUpdate = 0;
|
|
|
|
this.gameDB = [];
|
|
|
|
this.gameDBPromise = null;
|
2016-12-08 03:52:37 +00:00
|
|
|
};
|
|
|
|
|
2017-10-05 02:21:36 +00:00
|
|
|
module.exports = new State();
|