Bug Fixes

This commit is contained in:
Daniel Odendahl Jr
2017-03-30 21:05:26 +00:00
parent 34cbf278df
commit eff2025533
4 changed files with 11 additions and 31 deletions
+4 -14
View File
@@ -33,32 +33,22 @@ module.exports = class TypingGameCommand extends commando.Command {
let randomSentence = ['The quick brown fox jumps over the lazy dog.', 'Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo.', 'How razorback-jumping frogs can level six piqued gymnasts!', 'Amazingly few discotheques provide jukeboxes.'];
randomSentence = randomSentence[Math.floor(Math.random() * randomSentence.length)];
let time;
switch (level) {
case "easy":
time = 25000;
break;
case "medium":
time = 20000;
break;
case "hard":
time = 15000;
break;
case "extreme":
time = 10000;
break;
}
let levelWord;
switch (level) {
case "easy":
time = 25000;
levelWord = "twenty-five";
break;
case "medium":
time = 20000;
levelWord = "twenty";
break;
case "hard":
time = 15000;
levelWord = "fifteen";
break;
case "extreme":
time = 10000;
levelWord = "ten";
break;
}