/djs-warn-system

a simple warn system for v14 bots using javascript, mongoDB, and nodejs!

Primary LanguageJavaScriptMIT LicenseMIT

BannerImage

GitHub forks GitHub Repo stars GitHub issues

DJS Warn System (Discord.js V14)

A simple warn system for v14 bots using javascript, mongoDB, and nodejs!

NOTE

Dependencies

  • discord.js: npm i discord.js
  • mongoose: npm i mongoose

Instructions

  1. Install all the dependencies.
  2. Copy the command files into your command folder.
  3. Create a folder called schemas and copy the schema files into it.
  4. Correct all the paths to the schemas folder.
  5. Try the commands!

MongoDB Code

    // 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);
      });

previews

logsSample mologsSample dmWarnSample