discord_bot/mongo/guildDB.js

9 lines
356 B
JavaScript

const mongoose = require("mongoose");
const guildDB = new mongoose.Schema({
guild: { type: String, default: '' },
channel: { type: String, default: '' },
message: { type: String, default: '[member:mention] Willkommen bei [guild:name]' },
});
module.exports = mongoose.model(`${__filename.split(`${__dirname}/`).pop().split(`.`).shift()}`, guildDB);