diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index e6fecba..77c5fcb 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -355,17 +355,19 @@ async function generateRound(message) { bonus_answer + "

"; htmlContent = htmlContent.replace(/\n/g, "
"); + if (i === 25) { + newGeneratedRound = new generatedRound({ + htmlContent: htmlContent, + requestedBy: message.author.tag, + }); + newGeneratedRound.save((err) => + err + ? console.log("Error creating saving generated round content") + : console.log("Sucessfully created new entry for the generated round") + ); + } }); } - newGeneratedRound = new generatedRound({ - htmlContent: htmlContent, - requestedBy: message.author.tag, - }); - newGeneratedRound.save((err) => - err - ? console.log("Error creating saving generated round content") - : console.log("Sucessfully created new entry for the generated round") - ); message.channel.send("Check database"); }