discord_bot/mongo/guildDB.js

9 lines
356 B
JavaScript
Raw Normal View History

2024-02-07 14:41:01 +00:00
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);