mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 06:42:50 +02:00
Add s to high score
This commit is contained in:
@@ -62,7 +62,7 @@ module.exports = class TypingRaceCommand extends Command {
|
|||||||
const wpm = (sentence.length / 5) / ((newScore / 1000) / 60);
|
const wpm = (sentence.length / 5) / ((newScore / 1000) / 60);
|
||||||
return msg.say(stripIndents`
|
return msg.say(stripIndents`
|
||||||
The winner is ${winner.first().author}! (Took ${newScore / 1000} seconds, ${Math.round(wpm)} WPM)
|
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) {
|
} catch (err) {
|
||||||
this.client.games.delete(msg.channel.id);
|
this.client.games.delete(msg.channel.id);
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ module.exports = class TypingTestCommand extends Command {
|
|||||||
const wpm = (sentence.length / 5) / ((newScore / 1000) / 60);
|
const wpm = (sentence.length / 5) / ((newScore / 1000) / 60);
|
||||||
return msg.reply(stripIndents`
|
return msg.reply(stripIndents`
|
||||||
Nice job! 10/10! You deserve some cake! (Took ${newScore / 1000} seconds, ${Math.round(wpm)} WPM)
|
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})
|
||||||
`);
|
`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user