Added bots & votes

This commit is contained in:
CorwinDev committed 2022-08-08 21:32:55 +02:00
1 parent c058ab2e55
commit 47dfdbd344
16 files changed
+798 -457

No files matched your search

+4 -1
View File
@@ -5,11 +5,14 @@ let hm = new mongoose.Schema({
icon: String,
verified: Boolean,
description: String,
owner: String,
owners: [String],
long_description: String,
banner: String,
tags: [String],
premium: Boolean,
servers: String,
users: String,
votes: Number,
});
module.exports = mongoose.model("bots", hm);
+8
View File
@@ -0,0 +1,8 @@
const mongoose = require("mongoose");
let model = new mongoose.Schema({
user: String,
date: Date,
bot: String,
});
module.exports = mongoose.model("votes", model);