Giter VIP home page Giter VIP logo

discordjs-simple-moderation's Introduction

Discord.js V13 Moderation Bot

This is a simple Discord moderation bot in Discord.js v13.
You have to use Node.js v16.6+
You can find the v12 version here

Setup:

Download Node.js
Open a terminal and type these commands:

git clone https://github.com/0l1v3rr/discordjs-simple-moderation.git
cd discordjs-simple-moderation
npm i

Now, open the index.js file and paste your token and your muted_role id to the correct positions. It's marked in the code with comments.
Then you can run the index.js file:

node index.js

Some important things:

  • Make sure you have {} in your warns.json file.
  • Make sure you entered your Muted role id in the code.
    • const mutedroleid = 'MUTEDROLE ID';
    • I also recommend you to deny the permission "SEND MESSAGES" for this Muted role.
  • Make sure you entered your token.
    • bot.login('YOUR TOKEN');
  • Make sure the bot has the necessary permissions.

Commands:

(<> is required, [ ] is optional)

  • !ban <member> [reason]
  • !kick <member> [reason]
  • !mute <member> [time (s, m, h, d)] [reason]
    • For example: !mute @John 10m Provocative communication.
    • If the moderator does not enter a time, it's automatically set to 1 hour. You can easily edit this in the code.
  • !unmute <member> [reason]
  • !warn <member> [reason]
    • If the number of warns reaches five, the bot will mute the mentioned member for 10 minutes. You can easily edit this in the code.

discordjs-simple-moderation's People

Contributors

0l1v3rr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.