diff --git a/bot/mongooseModels/mongooseGeneratedRoundModel.js b/bot/mongooseModels/mongooseGeneratedRoundModel.js new file mode 100644 index 0000000..b0e9515 --- /dev/null +++ b/bot/mongooseModels/mongooseGeneratedRoundModel.js @@ -0,0 +1,14 @@ +const mongoose = require("mongoose"); + +const generatedRoundSchema = new mongoose.Schema({ + htmlContent: { + type: String, + required: true, + }, + requestedBy: { + type: String, + required: true, + }, +}); + +module.exports = mongoose.model("GeneratedRounds", generatedRoundSchema); diff --git a/bot/package.json b/bot/package.json index ac6dc2d..c1b06cb 100644 --- a/bot/package.json +++ b/bot/package.json @@ -10,13 +10,13 @@ }, "name": "awscibo", "version": "0.4.1", - "main": "awesomescibo.mjs", + "main": "awesomescibo.js", "bin": { - "awscibo": "./awesomescibo.mjs" + "awscibo": "./awesomescibo.js" }, "scripts": { - "test": "node awesomescibo.mjs randomtoken", - "start": "nodemon awesomescibo.mjs" + "test": "node awesomescibo.js randomtoken", + "start": "nodemon awesomescibo.js" }, "keywords": [ "discord",