🗃 BanchoUser: Add joinDate and totalSecondsPlayed

parent 73db7adb
......@@ -12,6 +12,7 @@ const BanchoBotStatsCommand = require("./StatsCommand/BanchoBotStatsCommand");
* @property {string} ircUsername
* @property {number} [id]
* @property {string} [username]
* @property {Date} [joinDate]
* @property {number} [count300]
* @property {number} [count100]
* @property {number} [count50]
......@@ -26,6 +27,7 @@ const BanchoBotStatsCommand = require("./StatsCommand/BanchoBotStatsCommand");
* @property {number} [countRankS]
* @property {number} [countRankA]
* @property {number} [country]
* @property {number} [totalSecondsPlayed]
* @property {number} [ppCountryRank]
* @property {Array.<nodesu.UserEvent>} [events]
* @extends EventEmitter
......@@ -89,6 +91,7 @@ class BanchoUser extends EventEmitter {
updateFromAPI(user) {
this.id = user.id;
this.username = user.username;
this.joinDate = user.joinDate;
this.count300 = user.count300;
this.count100 = user.count100;
this.count50 = user.count50;
......@@ -103,6 +106,7 @@ class BanchoUser extends EventEmitter {
this.countRankS = user.countRankS;
this.countRankA = user.countRankA;
this.country = user.country;
this.totalSecondsPlayed = user.totalSecondsPlayed;
this.ppCountryRank = user.ppCountryRank;
this.events = user.events;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment