diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-09 19:47:50 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-05-09 19:47:50 +0200 |
| commit | d158b9dabfc8b6c9a6c13e3307be455957b95a98 (patch) | |
| tree | bae84669e3f18870d5d6b393210a9035ffbfc50a /views/guild_progress.js | |
| parent | 343648f0e9faefaf13ffa3e039b92d67970c31fc (diff) | |
| download | discordbot-d158b9dabfc8b6c9a6c13e3307be455957b95a98.tar.gz discordbot-d158b9dabfc8b6c9a6c13e3307be455957b95a98.zip | |
fix progress reports
Diffstat (limited to 'views/guild_progress.js')
| -rw-r--r-- | views/guild_progress.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/views/guild_progress.js b/views/guild_progress.js index 163c627..b3fdeb3 100644 --- a/views/guild_progress.js +++ b/views/guild_progress.js @@ -16,13 +16,10 @@ module.exports = class extends View { this.players = players; } - // players: obj, key=ign, value=player + // players: obj, key=ign, value=progress async text(players) { return Object.entries(players).map((tuple) => - (tuple[1] == undefined)? - `Loading ${tuple[0]}…` - : `Loaded ${tuple[0]}.` - ).join("\n"); + `${tuple[0]}: ${tuple[1]}`).join("\n"); } async respond(extra="") { |
