UNPKG

discord-xp

Version:

A lightweight and easy to use economy framework for discord bots, uses MongoDB.

12 lines (9 loc) 336 B
const mongoose = require("mongoose"); const LevelSchema = new mongoose.Schema({ userID: { type: String }, guildID: { type: String }, xp: { type: Number, default: 0 }, level: { type: Number, default: 0 }, lastUpdated: { type: Date, default: new Date() } }); module.exports = mongoose.model('Levels', LevelSchema);