UNPKG

discord-birthday-wisher

Version:

discord-brithday-wisher is a powerful npm package that wishes everyone a happy birthday on their birthday, uses MongoDB.

16 lines (12 loc) 409 B
const mongoose = require("mongoose"); const BirthdaySchema = new mongoose.Schema({ userID: { type: String }, guildID: { type: String }, Day: { type: Number }, Month: { type: Number }, Year: { type: Number }, Full: { type: String }, lastUpdated: { type: Date, default: new Date() }, }); const birthdays = mongoose.model("Birthdays", BirthdaySchema); module.exports = birthdays;