A system foradding notes to a user with modlogs and database integration! Created with node.js and discord.js clean and readable code.
- For support join my discord server or create a discussion here!
- discord.js:
npm i discord.js
- mongoose:
npm i mongoose
- Install all the dependencies.
- Copy the command files into your command folder.
- Create a folder called
schemas
and copy the schema files into it. - Correct all the paths to the schemas folder.
- Try the commands!
add to
ready.js
file!
// Add this to the top of the file
const { connect } = require('mongoose')
// Add this to your ready.js file
await connect(MONGO_URI)
.then(() => {
console.log(`✅ >>> Successfully connected to MongoDB!`);
})
.catch((err) => {
console.log(err);
});