Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-moderator

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-moderator

A simple module for adding moderation to Discord bot.

  • 1.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

discord-moderator


Support server NPM version NPM downloads

Welcome

Welcome! This 'discord-moderator' module!
This is a simple module for adding moderation to Discord bot.

Installation

Please note: Node.js 14.0.0 or newer is required.
All types in brackets mean the type of what the method or event returns.

Install discord-moderator

$ npm install discord-moderator

Features

  • Simple & easy to use 👍
  • Beginner friendly 😄
  • Minimalistic option constructor 🔧
  • TypeScript Support 🔑
  • Flexible and customizable 🛠️
  • 100% Promise-based ⚙️

Module Managers

  • 'BlacklistManager' - Manager that enables Blacklist System.
  • 'MuteManager' - Manager that enables Mute System.
  • 'PunishmentManager' - Manager that enables Blacklist System.
  • 'RolesManager' - Manager that enables Roles System.
  • 'UtilsManager' - Manager that includes some utils for other managers.
  • 'WarnManager' - Manager that enables Warn System.

Module Constructor Options

  • 'options.muteManager' - Property responsible for the status of the muting manager.

  • 'options.warnManager' - Property responsible for the status of the warning manager.

  • 'options.blacklistManager' - Property responsible for the status of the blacklist manager.

  • 'options.muteConfig.tableName' - Property responsible for the name of the table for the mute manager.

  • 'options.muteConfig.checkCountdown' - Property responsible for the checking interval of all mutes.

  • 'options.warnConfig.tableName' - Property responsible for the name of the table for the warn manager.

  • 'options.warnConfig.maxWarns' - Property responsible for the maximum number of warnings.

  • 'options.warnConfig.punishment' - Property responsible for the method of punishing the user. Available: tempmute, mute, kick, ban.

  • 'options.warnConfig.muteTime' - Property responsible for the mute time for the tempmute punishment method.

  • 'options.blacklistConfig.tableName' - Property responsible for the name of the table for the blacklist manager.

  • 'options.blacklistConfig.punishment' - Property responsible for the method of punishing the user. Available: kick, ban.

Quick Initialization Example

const Discord = require('discord.js');

const client = new Discord.Client();
const Moderator = require('discord-moderator');
const moderator = new Moderator(client);

client.on('ready', () => {
  console.log('Bot started!');
})

client.login('YOUR_BOT_TOKEN_HERE');

Examples

Click here to see JavaScript examples.

Thanks for using Discord Moderator ♥

Keywords

FAQs

Package last updated on 15 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc