From 4c495cc8dfaf69f18be229f66ee663c72c184e70 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 7 Feb 2021 22:33:59 -0500 Subject: [PATCH] Add s to high score --- commands/games-mp/typing-race.js | 2 +- commands/games-sp/typing-test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/typing-race.js b/commands/games-mp/typing-race.js index 00740ffc..52ff52d5 100644 --- a/commands/games-mp/typing-race.js +++ b/commands/games-mp/typing-race.js @@ -62,7 +62,7 @@ module.exports = class TypingRaceCommand extends Command { const wpm = (sentence.length / 5) / ((newScore / 1000) / 60); return msg.say(stripIndents` The winner is ${winner.first().author}! (Took ${newScore / 1000} seconds, ${Math.round(wpm)} WPM) - ${scoreBeat ? `**New High Score!** Old:` : `High Score:`} ${highScore / 1000} (Held by ${user}) + ${scoreBeat ? `**New High Score!** Old:` : `High Score:`} ${highScore / 1000}s (Held by ${user}) `); } catch (err) { this.client.games.delete(msg.channel.id); diff --git a/commands/games-sp/typing-test.js b/commands/games-sp/typing-test.js index 45fe020e..fb15ccab 100644 --- a/commands/games-sp/typing-test.js +++ b/commands/games-sp/typing-test.js @@ -42,7 +42,7 @@ module.exports = class TypingTestCommand extends Command { const wpm = (sentence.length / 5) / ((newScore / 1000) / 60); return msg.reply(stripIndents` Nice job! 10/10! You deserve some cake! (Took ${newScore / 1000} seconds, ${Math.round(wpm)} WPM) - ${scoreBeat ? `**New High Score!** Old:` : `High Score:`} ${highScore / 1000} (Held by ${user}) + ${scoreBeat ? `**New High Score!** Old:` : `High Score:`} ${highScore / 1000}s (Held by ${user}) `); }