diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index 5f30412..bd0a3af 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -337,6 +337,8 @@ async function generateRound(message) { newGeneratedRound = new generatedRound({ htmlContent: finalizedHTML, requestedBy: message.author.id, + authorTag: message.author.tag, + timestamp: new Date().toISOString(), }); newGeneratedRound.save((err, round) => { if (err) { diff --git a/bot/mongooseModels/mongooseGeneratedRoundModel.js b/bot/mongooseModels/mongooseGeneratedRoundModel.js index b0e9515..164219b 100644 --- a/bot/mongooseModels/mongooseGeneratedRoundModel.js +++ b/bot/mongooseModels/mongooseGeneratedRoundModel.js @@ -9,6 +9,14 @@ const generatedRoundSchema = new mongoose.Schema({ type: String, required: true, }, + authorTag: { + type: String, + required: true, + }, + timestamp: { + type: String, + required: true, + } }); module.exports = mongoose.model("GeneratedRounds", generatedRoundSchema);