Fix typos
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user