Skip to content

Commit

Permalink
Create group.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingjux authored May 5, 2024
1 parent e1ee90f commit c01cd7e
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions lib/database/group.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
let options = {
disables: {
type: Array,
default: []
}
};
const mongoose = require("mongoose");
const GroupSchema = new mongoose.Schema({
id: {
type: String,
unique: true,
required: true
},
events: {
type: String,
default: "false"
},
nsfw: {
type: String,
default: "false"
},
pdm: {
type: String,
default: "false"
},
antipromote: {
type: String,
default: "false"
},
antidemote: {
type: String,
default: "false"
},
goodbye: {
type: String,
default: global.gdbye
},
welcome: {
type: String,
default: global.wlcm
},
welcometext: {
type: String,
default: "*@user @pp welcome to @gname"
},
goodbyetext: {
type: String,
default: "*@user @pp left @gname"
},
botenable: {
type: String,
default: "true"
},
antilink: {
type: String,
default: "false"
},
antiword: {
type: Object,
default: {}
},
antifake: {
type: String,
default: "false"
},
antispam: {
type: String,
default: "false"
},
antibot: {
type: String,
default: "false"
},
antitag: {
type: String,
default: "false"
},
onlyadmin: {
type: String,
default: "false"
},
economy: {
type: String,
default: "false"
},
disablecmds: {
type: String,
default: "false"
},
chatbot: {
type: String,
default: "false"
},
mute: {
type: String,
default: "false"
},
unmute: {
type: String,
default: "false"
},
...options
});
const sck = mongoose.model("Sck", GroupSchema);
module.exports = {
sck: sck
};

0 comments on commit c01cd7e

Please sign in to comment.