Mongo works, added new events
This commit is contained in:
parent
187835991e
commit
a82c054ce3
19 changed files with 246 additions and 114 deletions
29
models/guild.js
Normal file
29
models/guild.js
Normal file
|
@ -0,0 +1,29 @@
|
|||
const mongoose = require('mongoose')
|
||||
const Schema = mongoose.Schema
|
||||
const { defaultGuildSettings: defaults } = require('../config')
|
||||
|
||||
module.exports = mongoose.model('Guild', new Schema({
|
||||
_id: mongoose.Schema.Types.ObjectId,
|
||||
guildID: String,
|
||||
guildName: String,
|
||||
|
||||
prefix: {
|
||||
type: String,
|
||||
default: defaults.prefix
|
||||
},
|
||||
|
||||
systemNotice: {
|
||||
type: Boolean,
|
||||
default: defaults.systemNotice
|
||||
},
|
||||
|
||||
modRole: {
|
||||
type: String,
|
||||
default: defaults.modRole
|
||||
},
|
||||
|
||||
adminRole: {
|
||||
type: String,
|
||||
default: defaults.modRole
|
||||
}
|
||||
}))
|
0
models/member.js
Normal file
0
models/member.js
Normal file
0
models/user.js
Normal file
0
models/user.js
Normal file
Loading…
Add table
Add a link
Reference in a new issue