From ebbe3fb49e4112b852d2f1b0d8230a3d04d5bcbe Mon Sep 17 00:00:00 2001 From: Misly <60405462+Misly16@users.noreply.github.com> Date: Wed, 8 Jul 2020 14:38:00 +0100 Subject: [PATCH 1/6] Create warn.js --- DevBot V1/models/warn.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 DevBot V1/models/warn.js diff --git a/DevBot V1/models/warn.js b/DevBot V1/models/warn.js new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/DevBot V1/models/warn.js @@ -0,0 +1 @@ + From fcfc0e9563a53ab6e92e3f9b7582b21ed755b707 Mon Sep 17 00:00:00 2001 From: Misly <60405462+Misly16@users.noreply.github.com> Date: Wed, 8 Jul 2020 14:39:40 +0100 Subject: [PATCH 2/6] Update warn.js --- DevBot V1/models/warn.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/DevBot V1/models/warn.js b/DevBot V1/models/warn.js index 8b13789..4d30bae 100644 --- a/DevBot V1/models/warn.js +++ b/DevBot V1/models/warn.js @@ -1 +1,12 @@ +const mongoose = require("mongoose"); +const warndbSchema = mongoose.Schema({ + + _id: mongoose.Schema.Types.ObjectId, + userID: String, + modID: String, + reason: String + +}); + +module.exports = mongoose.model("warndb", warndbSchema) From bf0115372ca1e7951176076b2aa72f0943f74879 Mon Sep 17 00:00:00 2001 From: Misly <60405462+Misly16@users.noreply.github.com> Date: Wed, 8 Jul 2020 14:40:33 +0100 Subject: [PATCH 3/6] Create note.js --- DevBot V1/models/note.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 DevBot V1/models/note.js diff --git a/DevBot V1/models/note.js b/DevBot V1/models/note.js new file mode 100644 index 0000000..0d31540 --- /dev/null +++ b/DevBot V1/models/note.js @@ -0,0 +1,12 @@ +const mongoose = require("mongoose"); + +const notedbSchema = mongoose.Schema({ + + _id: mongoose.Schema.Types.ObjectId, + userID: String, + modID: String, + note: String + +}); + +module.exports = mongoose.model("notedb", notedbSchema) From e09f61b261642a76da3eb271f42077774f6167ae Mon Sep 17 00:00:00 2001 From: Misly <60405462+Misly16@users.noreply.github.com> Date: Wed, 8 Jul 2020 14:43:44 +0100 Subject: [PATCH 4/6] Create punishment --- DevBot V1/models/punishment | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 DevBot V1/models/punishment diff --git a/DevBot V1/models/punishment b/DevBot V1/models/punishment new file mode 100644 index 0000000..c3b4df6 --- /dev/null +++ b/DevBot V1/models/punishment @@ -0,0 +1,14 @@ +// This will be used by bans, mutes and kicks to make it easier. punishment type will be stated in "type" +const mongoose = require("mongoose"); + +const punishmentSchema = mongoose.Schema({ + + _id: mongoose.Schema.Types.ObjectId, + type: String, + userID: String, + modID: String, + reason: String + +}); + +module.exports = mongoose.model("punishment", punishmentSchema) From 2061648eb51ced51d3e69ecf50a617f08c6229df Mon Sep 17 00:00:00 2001 From: Misly <60405462+Misly16@users.noreply.github.com> Date: Wed, 8 Jul 2020 14:44:17 +0100 Subject: [PATCH 5/6] Rename punishment to punishment.js --- DevBot V1/models/{punishment => punishment.js} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename DevBot V1/models/{punishment => punishment.js} (100%) diff --git a/DevBot V1/models/punishment b/DevBot V1/models/punishment.js similarity index 100% rename from DevBot V1/models/punishment rename to DevBot V1/models/punishment.js From a9de474b2dd9899992ba114ba6d91c58ef9c10dd Mon Sep 17 00:00:00 2001 From: Misly <60405462+Misly16@users.noreply.github.com> Date: Wed, 8 Jul 2020 14:45:39 +0100 Subject: [PATCH 6/6] added db at the end to not interfere with anything --- DevBot V1/models/punishment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DevBot V1/models/punishment.js b/DevBot V1/models/punishment.js index c3b4df6..40a43e5 100644 --- a/DevBot V1/models/punishment.js +++ b/DevBot V1/models/punishment.js @@ -1,7 +1,7 @@ // This will be used by bans, mutes and kicks to make it easier. punishment type will be stated in "type" const mongoose = require("mongoose"); -const punishmentSchema = mongoose.Schema({ +const punishmentdbSchema = mongoose.Schema({ _id: mongoose.Schema.Types.ObjectId, type: String, @@ -11,4 +11,4 @@ const punishmentSchema = mongoose.Schema({ }); -module.exports = mongoose.model("punishment", punishmentSchema) +module.exports = mongoose.model("punishmentdb", punishmentdbSchema)