discord-bot/src/state.js

20 lines
363 B
JavaScript
Raw Normal View History

2016-12-08 03:52:37 +00:00
/* Application State */
const State = function () {
2017-09-29 23:38:00 +00:00
this.guild = null;
this.logChannel = null;
this.warnings = [];
this.responses = null;
this.bans = [];
2017-09-29 23:38:00 +00:00
this.stats = {
joins: 0,
ruleAccepts: 0,
leaves: 0,
warnings: 0
2017-09-29 23:38:00 +00:00
};
this.lastGameDBUpdate = 0;
this.gameDB = [];
this.gameDBPromise = null;
2016-12-08 03:52:37 +00:00
};
module.exports = new State();