Fix typos

This commit is contained in:
eTronic
2018-06-25 18:23:25 -04:00
parent 66d64cf8b0
commit 09b5de6f7c

View File

@@ -127,7 +127,7 @@ request('https://api-quiz.hype.space/shows/now', (error, response, body) => {
}
});
console.log('\x1b[1m\x1b[32m%s\x1b[0m', `\nAnswer was ${index}: ${correctAnswer.text}`);
console.log('\x1b[1m\x1b[32m%s\x1b[0m', `\nAnswer was ${index + 1}: ${correctAnswer.text}`);
if (wrongPlayers.length > 0) {
console.log('\x1b[1m\x1b[31m%s\x1b[0m', `${wrongPlayers.length} players have been eliminated!`);
@@ -160,7 +160,7 @@ request('https://api-quiz.hype.space/shows/now', (error, response, body) => {
if (playersInGame.length > 0) {
prompt.start();
prompt.get(['answer'], (err, res) => {
console.log('\n');
console.log();
if (!timesUp) {
const inputAnswer = res.answer.trim();
if (!inputAnswer) {