Browse Source

Fix variable declaration location

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
61568b8c5c
  1. 2
      bot/awesomescibo.js

2
bot/awesomescibo.js

@ -313,6 +313,7 @@ async function generateRound(message) {
} }
}); });
let i; let i;
let finalizedHTML = "";
for (i = 1; i < 26; i++) { for (i = 1; i < 26; i++) {
let tossup_question; let tossup_question;
let question_category; let question_category;
@ -321,7 +322,6 @@ async function generateRound(message) {
let bonus_question; let bonus_question;
let bonus_format; let bonus_format;
let bonus_answer; let bonus_answer;
let finalizedHTML = "";
let htmlContent = ""; let htmlContent = "";
await fetch("https://scibowldb.com/api/questions/random") await fetch("https://scibowldb.com/api/questions/random")
.then((response) => response.json()) .then((response) => response.json())

Loading…
Cancel
Save