From 13275717c93a741f50538e85af68e92d9b292998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=AD=E6=97=A0=E5=AF=93=20=E5=BA=A6=E9=BA=BB=E7=B4=A0?= Date: Fri, 6 Nov 2020 18:24:00 +0700 Subject: [PATCH] Create Guild.js --- base/Guild.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 base/Guild.js diff --git a/base/Guild.js b/base/Guild.js new file mode 100644 index 0000000..59fbe24 --- /dev/null +++ b/base/Guild.js @@ -0,0 +1,9 @@ +const mongoose = require("mongoose"), +Schema = mongoose.Schema, +config = require("../config.json"); + +module.exports = mongoose.model("Guild", new Schema({ + id: { type: String }, + registeredAt: { type: Number, default: Date.now() }, + prefix: { type: String, default: config.prefix }, +}));