2020-04-06 05:54:45 +00:00
|
|
|
const { Schema, model } = require('mongoose')
|
|
|
|
const { defaultPrefix } = require('../config')
|
2020-04-04 06:59:22 +00:00
|
|
|
|
2020-04-06 05:54:45 +00:00
|
|
|
module.exports = model('Guild', new Schema({
|
|
|
|
_id: Schema.Types.ObjectId,
|
2020-04-04 06:59:22 +00:00
|
|
|
guildID: String,
|
|
|
|
|
|
|
|
prefix: {
|
|
|
|
type: String,
|
2020-04-06 05:54:45 +00:00
|
|
|
default: defaultPrefix
|
2020-04-04 06:59:22 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
modRole: {
|
|
|
|
type: String,
|
2020-04-06 05:54:45 +00:00
|
|
|
default: null
|
2020-04-04 06:59:22 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
adminRole: {
|
|
|
|
type: String,
|
2020-04-06 05:54:45 +00:00
|
|
|
default: null
|
2020-04-05 08:48:15 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
mutedRole: {
|
|
|
|
type: String,
|
2020-04-06 05:54:45 +00:00
|
|
|
default: null
|
|
|
|
},
|
|
|
|
|
|
|
|
autoRole: {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
},
|
|
|
|
|
|
|
|
systemNotice: {
|
|
|
|
type: Object,
|
|
|
|
default: {
|
|
|
|
enabled: true,
|
|
|
|
autoDelete: 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
plugins: {
|
|
|
|
type: Object,
|
|
|
|
default: {
|
|
|
|
welcome: {
|
|
|
|
enabled: false,
|
|
|
|
channel: null,
|
|
|
|
message: null
|
|
|
|
},
|
|
|
|
goodbye: {
|
|
|
|
enabled: false,
|
|
|
|
channel: null,
|
|
|
|
message: null
|
|
|
|
},
|
|
|
|
chatLogs: {
|
|
|
|
enabled: false,
|
|
|
|
channel: null
|
|
|
|
},
|
|
|
|
modLogs: {
|
|
|
|
enabled: false,
|
|
|
|
channel: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
botChannels: {
|
|
|
|
type: Array,
|
|
|
|
default: []
|
|
|
|
},
|
|
|
|
|
|
|
|
blacklisted: {
|
|
|
|
type: Array,
|
|
|
|
default: []
|
|
|
|
},
|
|
|
|
|
|
|
|
customCommands: {
|
|
|
|
type: Array,
|
|
|
|
default: []
|
|
|
|
},
|
|
|
|
|
|
|
|
disabledCommands: {
|
|
|
|
type: Array,
|
|
|
|
default: []
|
|
|
|
},
|
|
|
|
|
|
|
|
disabledCategories: {
|
|
|
|
type: Array,
|
|
|
|
default: []
|
2020-04-04 06:59:22 +00:00
|
|
|
}
|
|
|
|
}))
|
2020-04-05 08:48:15 +00:00
|
|
|
|
|
|
|
// I SPWENT TWO FUCKONG DAUYS TRYING TO FIGURE OUT HOW TO UPDATE EXISTING DB ENTRIES WITH NEW SCHEMA SHIT AND IT DOES THIS BY FUCKING DEFAULT
|