nyx/models/guilds.js
night0721 bc346138dd Bot
2021-06-12 18:53:51 +08:00

36 lines
624 B
JavaScript

const mongoose = require("mongoose");
const prefix = require("../config.json").prefix;
module.exports = mongoose.model(
"guild",
new mongoose.Schema({
Guild: String,
Prefix: {
type: String,
default: prefix,
},
Welcome: {
type: String,
default: "null",
},
Goodbye: {
type: String,
default: "null",
},
Log: {
type: String,
default: "null",
},
Premium: {
type: Boolean,
default: false,
},
Category: {
type: Array,
default: [],
},
Commands: {
type: Array,
default: [],
},
})
);