Browse Source

Attempt to fix scope issue

pull/9/head
Abheek Dhawan 4 years ago
parent
commit
26ede2a8ff
  1. 6
      bot/awesomescibo.js

6
bot/awesomescibo.js

@ -355,8 +355,7 @@ async function generateRound(message) {
bonus_answer +
"<br><br>";
htmlContent = htmlContent.replace(/\n/g, "<br>");
});
}
if (i === 25) {
newGeneratedRound = new generatedRound({
htmlContent: htmlContent,
requestedBy: message.author.tag,
@ -366,6 +365,9 @@ async function generateRound(message) {
? console.log("Error creating saving generated round content")
: console.log("Sucessfully created new entry for the generated round")
);
}
});
}
message.channel.send("Check database");
}

Loading…
Cancel
Save