diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index f02522a..7fbeaaa 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -313,7 +313,7 @@ async function generateRound(message) { } }); let i; - let finalizedHTML = ""; + let finalizedHTML = '

ROUND GENERATED BY AWESOMESCIBO USING THE SCIBOWLDB API

'; for (i = 1; i < 26; i++) { let tossup_question; let question_category; @@ -333,28 +333,8 @@ async function generateRound(message) { bonus_question = data.question.bonus_question; bonus_answer = data.question.bonus_answer; bonus_format = data.question.bonus_format; - htmlContent = - `

${i}. Tossup\n

` + - `${question_category}` + - " " + - `${tossup_format}` + - " " + - tossup_question + - "

" + - "ANSWER: " + - tossup_answer + - "

"; - htmlContent += - "

Bonus\n

" + - `${question_category}` + - " " + - `${bonus_format}` + - " " + - bonus_question + - "

" + - "ANSWER: " + - bonus_answer + - "

"; + htmlContent = `

TOSS-UP

\n
` + `${i}) ${question_category}` + " " + `${tossup_format}` + " " + tossup_question + "

" + "ANSWER: " + tossup_answer + "
"; + htmlContent += `

BONUS

\n
` + `${i}) ${question_category}` + " " + `${bonus_format}` + " " + bonus_question + "

" + "ANSWER: " + bonus_answer + "



"; htmlContent = htmlContent.replace(/\n/g, "
"); finalizedHTML += htmlContent; if (i === 25) {