A simple warn system for v14 bots using javascript, mongoDB, and nodejs!
- 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 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);
});